What is this?
This is Dis-Snek, a python API wrapper for Discord.
Snek is intended to be fast, easy to use, and easily modified to suit your needs.
Features:
- ✅ 100% coverage of the application commands API
- ✅ Dynamic cache with TTL support
- ✅ Modern and Pythonic API
- ✅ Proper rate-limit handling
- ✅ Feature parity with most other Discord API wrappers
Is this just another Discord.py fork?
While this library shares features and some stylistic choices with discord.py, it is completely separate from them. We think discord.py is a fantastic library, but we disagree with the direction and design decisions that were made by it.
How do I use this?
Here is a basic example:
from dis_snek import Snake, Button, ButtonStyles, CommandTypes, context_menu, prefixed_command, listen
bot = Snake(sync_interactions=True)
@listen()
async def on_startup():
print("Ready")
print(f"This bot is owned by {bot.owner}")
@prefixed_command()
async def test_button(ctx):
await ctx.send("Blurple button example!", components=Button(ButtonStyles.BLURPLE, "Click me"))
@context_menu(name="User menu", context_type=CommandTypes.USER, scopes=[931832853770149918])
async def user_context(ctx):
await ctx.send("Context menu example!", ephemeral=True)
bot.start("TOKEN")
For more examples check out our examples repo or the docs. You also can explore projects with the dis-snek topic.
If you get stuck join our Discord server.
"Can I contribute to this project?"
Of course, we welcome all contributions to this library. Just ensure you follow our requirements. If youre stuck for things to contribute, check out our GitHub Projects for inspiration.
Links:
- Support Server: https://discord.gg/dis-snek
- Documentation: https://dis-snek.rtfd.io/
- GitHub Projects: https://github.com/orgs/Discord-Snake-Pit/projects/1
Metadata
Release files for dis-snek 9.0.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 | |
|---|---|---|---|---|
| dis-snek-9.0.0.tar.gz | 597.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dis_snek-9.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.2 MB
Release files / dis-snek-9.0.0.tar.gz
| Download URL | dis-snek-9.0.0.tar.gz |
|---|---|
| Size | 597.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
335db8acfcb6a0c6639813252969d2c79b3491c9cc72788ef29ddda882604bd8
|
|
BLAKE2b-256 checksum How to use checksums |
304f17460d9df2cfa554067fed697d097e1a25d2ab90f633a671e3cfdea2fd62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Release files / dis_snek-9.0.0-py3-none-any.whl
| Download URL | dis_snek-9.0.0-py3-none-any.whl |
|---|---|
| Size | 648.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ac42f61872014d2e297ddca031a40dae8ec3d592816702108fa4c31eb26dda02
|
|
BLAKE2b-256 checksum How to use checksums |
245972ffa19a4a6cb592f4ff403883a37e14ecf4afe2216c6178d231188b3b6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Security for dis-snek 9.0.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.