All projects

bostie

Python library · Rust core

A Discord library for Python with a Rust core, built around reliable voice: DAVE end-to-end encryption, voice receive and recording.

Languages
Rust · Python
PyPI
0.3.3
Python
≥ 3.12
License
MIT / Apache-2.0

Voice outside the GIL

The voice engine runs on Rust threads: the 20 ms clock, decoding, mixing, Opus, encryption and DAVE, the end-to-end encryption Discord has required since March 2026. It plays files, URLs and HLS streams, receives each speaker on their own, and records calls.

Built to keep working

Unknown fields, enum values and component types never break decoding, and every payload stays reachable raw. Models are typed as Discord documents them, command options come from type hints, and bostie.testing is a fake Discord on localhost that tests run the real bot against.

Stack

  • Rust
  • PyO3
  • Python
  • Opus
  • DAVE
  • asyncio