bostie
A Discord library for Python with a Rust core, built around reliable voice.
Status: pre-alpha, and the API can still change. Slash, user and message commands, components, modals, gateway events, the cache, REST, webhooks, HTTP interactions, OAuth2, and voice playback and receiving work today.
import bostie
from bostie import ComponentContext, Context, ui, voice
bot = bostie.Bot()
@bot.command
async def play(ctx: Context, url: str) -> None:
"""Play a direct media URL in your voice channel."""
vc = ctx.voice.current or await ctx.voice.connect()
await vc.play(voice.Url(url))
stop = ui.button("Stop", custom_id=stop_playing.id(guild_id=vc.guild_id))
await ctx.respond(components=[ui.text(f"Playing <{url}>"), ui.row(stop)])
@bot.on_component("stop:{guild_id:int}")
async def stop_playing(ctx: ComponentContext, guild_id: int) -> None:
if (vc := bot.voice.get(guild_id)) is not None:
vc.stop()
await ctx.update(components=[ui.text("Stopped.")])
bot.run()
/play joins the caller's voice channel, streams the URL and answers with a Stop button whose custom id carries the guild id, so it keeps working after a restart. bot.run() reads the token from BOSTIE_TOKEN and registers the command when it changed.
What sets it apart
- The voice engine runs on Rust threads, outside the GIL: 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.
- Unknown fields, enum values, components and interaction types never break decoding, and every payload stays reachable raw, so a bot keeps working when Discord adds something.
- Models are typed as Discord documents them: a field Discord always sends is never
None, and a partial object such as a member resolved from an option has its own class. - Command options, choices, ranges and autocomplete come from type hints, and Discord's limits are checked when the decorator runs.
bostie.testingis a fake Discord on localhost that tests run the real bot against.
Install
pip install bostie
The wheels come with the Rust core and libopus compiled, for Python 3.12 and newer on Linux, macOS and Windows. python -m bostie prints the installed version. Install covers the testing extra, free-threaded Python and building from source.
Documentation
- Quickstart: create the application and run a first bot.
- Guides: slash commands, answering interactions, components, events, REST, testing and more.
- Voice: connections and DAVE, playback, raw audio, receiving and recording.
- Reference: every
Botoption, every event, and the API. - Examples: complete bots, each type-checked in CI.
Contributing
CONTRIBUTING.md explains the setup and the checks a pull request must pass. Report security problems as SECURITY.md describes.
License
Licensed under either of Apache License 2.0 or MIT, at your option.
bostie is not affiliated with Discord Inc.
Metadata
Release files for bostie 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bostie-0.2.0.tar.gz | 616.9 kB | With provenance | Details for bostie-0.2.0.tar.gz |
Built distributions (wheels)
Total release size: 102.3 MB
Release files / bostie-0.2.0.tar.gz
| Download URL | bostie-0.2.0.tar.gz |
|---|---|
| Size | 616.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0300c8e4c52261f532fdc83ee42e453c5781c2984232e456ea38b617c13de1db
|
|
BLAKE2b-256 checksum How to use checksums |
1d09173bc27e5128cc8335ed898130945373855dae6dfbc5137bc073c3f9211e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / bostie-0.2.0-cp315-cp315t-win_amd64.whl
| Download URL | bostie-0.2.0-cp315-cp315t-win_amd64.whl |
|---|---|
| Size | 6.0 MB |
| Tags | CPython 3.15 CPython 3.15 free-threading Windows x86-64 |
|
SHA-256 checksum How to use checksums |
1be0f8632216d9218f89b1eb092b4f3c87352fc379b184e26dc847bbea315a4a
|
|
BLAKE2b-256 checksum How to use checksums |
2aa85f48af37c43f5c200892d2125403b5fab733366597434d2da00c191e797d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / bostie-0.2.0-cp315-cp315t-manylinux_2_28_x86_64.whl
| Download URL | bostie-0.2.0-cp315-cp315t-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 6.3 MB |
| Tags | CPython 3.15 CPython 3.15 free-threading Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
c57396fbe2c29f3e00dcebb012faff1f2b649e27da722f90a477a5f1561adb8f
|
|
BLAKE2b-256 checksum How to use checksums |
3ae1c649aa6926fda730dea28d869f3423f1f1d77e17594a6ae8225459a66e5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / bostie-0.2.0-cp315-cp315t-manylinux_2_28_aarch64.whl
| Download URL | bostie-0.2.0-cp315-cp315t-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 5.7 MB |
| Tags | CPython 3.15 CPython 3.15 free-threading Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
0e733cd824cb7c7326bf78ea75a9893674de951b8c6f45575594f32ca4abaffe
|
|
BLAKE2b-256 checksum How to use checksums |
e5a665540792a8aac8250d196a9ee9b253775ad5cee0c98941d67aa98ea22710
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / bostie-0.2.0-cp315-cp315t-macosx_11_0_arm64.whl
| Download URL | bostie-0.2.0-cp315-cp315t-macosx_11_0_arm64.whl |
|---|---|
| Size | 5.6 MB |
| Tags | CPython 3.15 CPython 3.15 free-threading macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
76ba87702abe8ae3f2f28b58872a1c5602d86c59caf062584475a0bbe0a003fe
|
|
BLAKE2b-256 checksum How to use checksums |
bcd956882045b1b4e2f3c76a0175a5fb3b4f84a2c06d9e113333254ca245757a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / bostie-0.2.0-cp315-cp315t-macosx_10_12_x86_64.whl
| Download URL | bostie-0.2.0-cp315-cp315t-macosx_10_12_x86_64.whl |
|---|---|
| Size | 6.1 MB |
| Tags | CPython 3.15 CPython 3.15 free-threading macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
ed0da749f70e2bbee4f7506f2e7243c3149e018428feb48591f1560c95489ce3
|
|
BLAKE2b-256 checksum How to use checksums |
da62aee9b3604118a2e4b288642b02453a9d660f1965586eb22a883af7adfb0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / bostie-0.2.0-cp314-cp314t-win_amd64.whl
| Download URL | bostie-0.2.0-cp314-cp314t-win_amd64.whl |
|---|---|
| Size | 6.0 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Windows x86-64 |
|
SHA-256 checksum How to use checksums |
081c0e0d7d6a00811d4f9d7a5b0446d312ceb0cc5803185f4466f4571745600b
|
|
BLAKE2b-256 checksum How to use checksums |
438bebde68dae18fb150555d3d8b1935d928ba384b74a3ee8ff9300c59f32c86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / bostie-0.2.0-cp314-cp314t-manylinux_2_28_x86_64.whl
| Download URL | bostie-0.2.0-cp314-cp314t-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 6.3 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
354d68101c13ec15396229687efda6129e2b3569ae9bc5a8d25151b837d147fc
|
|
BLAKE2b-256 checksum How to use checksums |
da761a99ab8ee8f91f1e12014c40340fc5e722585eb322ac4ea7d9dfb11c8a37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / bostie-0.2.0-cp314-cp314t-manylinux_2_28_aarch64.whl
| Download URL | bostie-0.2.0-cp314-cp314t-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 5.7 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
cda07319dbfcfd996b8fd3a00c79c490c2edb1f1251f921156b3ed1f3b680a52
|
|
BLAKE2b-256 checksum How to use checksums |
742c74b004fa29b80047272de909d4944f08a2a2fb09854e93617bccd6dade76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / bostie-0.2.0-cp314-cp314t-macosx_11_0_arm64.whl
| Download URL | bostie-0.2.0-cp314-cp314t-macosx_11_0_arm64.whl |
|---|---|
| Size | 5.6 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
b14c2abfa017970f2f5da30d2c3cbc58556c8e3963bed58c6480ba98e8a35b08
|
|
BLAKE2b-256 checksum How to use checksums |
3ec919ca041d07a1769b01e7eae1dcadc3084a31659d823357ebd0d0d1c49cbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / bostie-0.2.0-cp314-cp314t-macosx_10_12_x86_64.whl
| Download URL | bostie-0.2.0-cp314-cp314t-macosx_10_12_x86_64.whl |
|---|---|
| Size | 6.1 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
5cd08a8b7bce5190c7db00febbaaccac62c033870aa64f5537b3b966ae0c828c
|
|
BLAKE2b-256 checksum How to use checksums |
8a79a610521606eb18942931640f4d72e12c4204954d3a788420943a2c9352c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / bostie-0.2.0-cp312-abi3-win_amd64.whl
| Download URL | bostie-0.2.0-cp312-abi3-win_amd64.whl |
|---|---|
| Size | 6.0 MB |
| Tags | CPython 3.12 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
677c8534188e703668e3cabb23fdd46125ba267493fc663d611093b4730bba09
|
|
BLAKE2b-256 checksum How to use checksums |
ef49bb6c2190962f3964c85b7658d87f59fbbd4011aef4e53f225173e5152464
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / bostie-0.2.0-cp312-abi3-musllinux_1_2_x86_64.whl
| Download URL | bostie-0.2.0-cp312-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 6.5 MB |
| Tags | CPython 3.12 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
da22c1b4866d2be2e3005a4b0769888cbe7fea9d85583fac4c773835f6457726
|
|
BLAKE2b-256 checksum How to use checksums |
53bbc211fb54d38794b21ef965742834dd386f9f877d64ecdba48208c7055e36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / bostie-0.2.0-cp312-abi3-musllinux_1_2_aarch64.whl
| Download URL | bostie-0.2.0-cp312-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 5.9 MB |
| Tags | CPython 3.12 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
39ee3a02fba9cea8655cfe3f782ed7ebe06b89b0d9acc6951fecfb3292659623
|
|
BLAKE2b-256 checksum How to use checksums |
8fbdd017b6b5307e973bca7842c6ced90af13285d7e43b601a25bf4a4a23cf4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / bostie-0.2.0-cp312-abi3-manylinux_2_28_x86_64.whl
| Download URL | bostie-0.2.0-cp312-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 6.3 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
b8cb5c1134932eaeb2113b8ef74f6f35e4c5eabe311777e00cf33d0c71c02a5c
|
|
BLAKE2b-256 checksum How to use checksums |
f5c05e01d519b50f88b12b7170ed2d863b0f488852a4e39b1c1058b1d2957d8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / bostie-0.2.0-cp312-abi3-manylinux_2_28_aarch64.whl
| Download URL | bostie-0.2.0-cp312-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 5.7 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
1eb698d81eb0c87bbddbe9b27f2abf5cf59b642de0c33f7b25390387ef87e14c
|
|
BLAKE2b-256 checksum How to use checksums |
64930eafe7f6a41d450a493ef9e9029d03e837d1f88bbe40ba97a08fd39eab56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / bostie-0.2.0-cp312-abi3-macosx_11_0_arm64.whl
| Download URL | bostie-0.2.0-cp312-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 5.6 MB |
| Tags | CPython 3.12 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
2fa596190b739cb9731c8791d14363c2be02238aec0c86ccbccbedd20ef04904
|
|
BLAKE2b-256 checksum How to use checksums |
82524c60a4e3397776fdebf341c9958c4805c97afe3e4c3496ade0d8f951b7e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / bostie-0.2.0-cp312-abi3-macosx_10_12_x86_64.whl
| Download URL | bostie-0.2.0-cp312-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 6.1 MB |
| Tags | CPython 3.12 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
5858a0c938381fe7ec8edfd64a5af09930b242c6752a7dc73b280d207eb0a4e0
|
|
BLAKE2b-256 checksum How to use checksums |
e7ee6dae883f23d7b7185f1b18b25315bd8a809d26de535da6b98958322c0bef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logSecurity for bostie 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 18 files in this release have been uploaded with provenance metadata.
Attestation for bostie-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.