Skip to main content

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)

Uploaded Source

Built Distribution

wumpy_gateway-0.2.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

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

Hashes for wumpy-gateway-0.2.0.tar.gz
Algorithm Hash digest
SHA256 211982f4b2142db822b17d869c90a77a11d231e49a598118433b312aaed1b1a1
MD5 33fdb8606dbbaccca95e0f27b1ba2990
BLAKE2b-256 d4b6ce3280e82b30eeb38a357a86771300f5fe19c20710675aa23d4fe6c9235b

See more details on using hashes here.

File details

Details for the file wumpy_gateway-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for wumpy_gateway-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8912ddcf0d3c088a8f9648fe5705c905f7770a6ca18bdd98ab9c2dd069126744
MD5 91eb9afa373671672da22503a36be5be
BLAKE2b-256 8d25a9eadd013864d25f19d4b91f9abc2ad92472e9ce8ccbb802ba5ff32f4837

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page