Lowlevel but easy-to-use wrapper over the Discord gateway
Project description
Wumpy-gateway
Gateway implementation for the Wumpy project.
Installation
Wumpy-gateway is available as a package on PyPI. Just use your favourite package manager such as pip or Poetry:
# Installing from PyPI using pip:
pip install wumpy-gateway
# Alternatively, using Poetry:
poetry add wumpy-gateway
Quickstart
The API of wumpy-gateway is very simple:
from wumpy.gateway import Shard
INTENTS = 65535
TOKEN = 'ABC123.XYZ789'
async def main():
# Connect to the URI wss://gateway.discord.gg/ with the token
# ABC123.XYZ8789 and all intents.
async with Shard('wss://gateway.discord.gg/', TOKEN, INTENTS) as ws:
async for event in ws:
print(event) # The deserialized JSON event payload
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wumpy-gateway-0.2.0.tar.gz
(9.0 kB
view details)
Built Distribution
File details
Details for the file wumpy-gateway-0.2.0.tar.gz
.
File metadata
- Download URL: wumpy-gateway-0.2.0.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 211982f4b2142db822b17d869c90a77a11d231e49a598118433b312aaed1b1a1 |
|
MD5 | 33fdb8606dbbaccca95e0f27b1ba2990 |
|
BLAKE2b-256 | d4b6ce3280e82b30eeb38a357a86771300f5fe19c20710675aa23d4fe6c9235b |
File details
Details for the file wumpy_gateway-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: wumpy_gateway-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8912ddcf0d3c088a8f9648fe5705c905f7770a6ca18bdd98ab9c2dd069126744 |
|
MD5 | 91eb9afa373671672da22503a36be5be |
|
BLAKE2b-256 | 8d25a9eadd013864d25f19d4b91f9abc2ad92472e9ce8ccbb802ba5ff32f4837 |