A modern API wrapper for Discord.
Installation
pip install aiocord
Features
Complete: Implements the entirety of Discord’s services.
Asynchronous: Written in pure asyncio for native parallelism.
Modular: Any component (such as HTTP) can be used in isolation.
Ergonomic: Comes with extreme purpose-driven data reception and cacehing.
Interactive: Supports slash-commands and related utilities out of the box.
Example
Create a widget/__init__.py file.
import aiocord
@aiocord.widget.callback(aiocord.events.CreateMessage)
async def handle(info, event):
if (message := event.message).author.id == info.client.cache.user.id:
return
await info.client.create_message(message.channel_id, content = f'{message.author.mention()} said {message.content}!')
And run the following in your terminal:
aiocord --token <TOKEN> start widget
This is a simple example to get you started in seconds, but the library covers a vast wealth tools to fit any scenario.
Check out the Documentation’s Examples section for more, such as how to use Commands and Interactions.
Metadata
Release files for aiocord 2.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aiocord-2.3.2.tar.gz | 111.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aiocord-2.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 211.2 kB
Release files / aiocord-2.3.2.tar.gz
| Download URL | aiocord-2.3.2.tar.gz |
|---|---|
| Size | 111.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a5c70c74eb022ca011631d5afcd48b6bf7e0ad3592e4110f84ffced5ce1d4bc
|
|
BLAKE2b-256 checksum How to use checksums |
88919000a60dd4d390157b8db321472c3e5a63409912776e4696b570fb0a2429
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / aiocord-2.3.2-py3-none-any.whl
| Download URL | aiocord-2.3.2-py3-none-any.whl |
|---|---|
| Size | 100.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0c72f4fc30b2b7b1fcc69255aa69ef75ed4a8d117ffae5e89b6ff71e04df7632
|
|
BLAKE2b-256 checksum How to use checksums |
b160f835fbad202ed2a4a61928d41b58261eb3aab7d3f38b8095a1aa6a2da20b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|