Async Discord Gateway client.
Project description
Dippy.Core
This is a bare-bones Discord gateway client that can be used to build Python bot frameworks for Discord.
Installation
pip install dippy.core
Usage
Connecting
from dippy.core import GatewayConnection, Intents
from asyncio import get_event_loop
client = GatewayConnection("YOUR.TOKEN.HERE", intents=Intents.DEFAULT | Intents.MEMBERS)
loop = get_event_loop()
loop.create_task(client.connect())
loop.run_forever()
Watching For Events
async def on_ready(event_payload):
print(event_payload.data)
client.on(on_ready, "READY")
Future
- Add models to wrap the event payload data
- Add a caching interface
- Add rate limiting
- Add methods to models for using the gateway
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Dippy.core-0.0.1a2.tar.gz
(25.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Dippy.core-0.0.1a2.tar.gz.
File metadata
- Download URL: Dippy.core-0.0.1a2.tar.gz
- Upload date:
- Size: 25.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.0 Darwin/20.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e7eecc441096e0a7e508889ec1c83ab92b38de081a1813ed51f9b5209e0cd6c
|
|
| MD5 |
019e828c901b0eed89cf842664e5aad0
|
|
| BLAKE2b-256 |
a9adfa68b0c701d083fbe079289661cd6536c813f316b95aacb965b78f1bd5e9
|
File details
Details for the file Dippy.core-0.0.1a2-py3-none-any.whl.
File metadata
- Download URL: Dippy.core-0.0.1a2-py3-none-any.whl
- Upload date:
- Size: 40.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.0 Darwin/20.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66bfbef8778c9d3b6509a51ed0fed0226fd80364b1add6e00f79fb5cd94c745a
|
|
| MD5 |
f40446153a1a6256c35b12e5867f78d6
|
|
| BLAKE2b-256 |
8317983bddc50c0fd02c29c829ff0d11aa4dcb27954ef77b4cb14b4012d2fce0
|