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.3.0.tar.gz
(10.6 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 wumpy-gateway-0.3.0.tar.gz.
File metadata
- Download URL: wumpy-gateway-0.3.0.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.26.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efef05a91c01d4f7f8597d1807fac8f229aa4f187fbec9bb9310704e8c6208b5
|
|
| MD5 |
8391b2125f3fdd2a95f57cce08c21470
|
|
| BLAKE2b-256 |
c76993c3dd160e2259b00ca9dc40e94bae1b5c42ccd1b99c1bb41be38c19f57e
|
File details
Details for the file wumpy_gateway-0.3.0-py3-none-any.whl.
File metadata
- Download URL: wumpy_gateway-0.3.0-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.26.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c8b13d34d4df3b83afb7c7d80a952216cb58348587db5262395ce340a2a8a53
|
|
| MD5 |
6d75ed6a4c40287e0e167629a9969fd4
|
|
| BLAKE2b-256 |
3a0abe8a784848d1129aedc47970214fdc04f525e6b72c8878ae29ca6a1995cf
|