Skip to main content

A Python library to wrap the Revolt API, made to be easy-to-use but powerful and feature rich.

Project description

pyrevolt

A Python library to wrap the Revolt API, made to be easy-to-use but powerful and feature rich.

Version Stability

Installing pyrevolt

Python 3.10 or greater is required To install pyrevolt, you can run the following command:

# Linux/macOS command
python3 -m pip install pyrevolt
# Windows
py -m pip install pyrevolt

Using pyrevolt

This shows a very quick example of how to use pyrevolt. As a note, pyrevolt is still under heavy development and this example and the library as a whole may change.

import pyrevolt

@pyrevolt.OnMessage()
async def onMessage(channel: pyrevolt.Channel, author: pyrevolt.User, content: str) -> None:
    print(f"{author.userID} in {channel.channelID}: {content}")
    if content == "!ping":
        await channel.Send(f"Pong! <@{author.userID}>")

bot = pyrevolt.Bot()
bot.run(token="TOKEN")

As the library expands, more examples will be added, but we expect users during the very initial development phases to read through the source in order to find how to develop (this will of course change over the development of the library).

Useful Information

Code Quality

CodeFactor CircleCI StyleCI

Repository Information

License: GPL v3 Percentage of issues still open

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

pyrevolt-0.1.1a0.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

pyrevolt-0.1.1a0-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file pyrevolt-0.1.1a0.tar.gz.

File metadata

  • Download URL: pyrevolt-0.1.1a0.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for pyrevolt-0.1.1a0.tar.gz
Algorithm Hash digest
SHA256 61b96949cb7de350b7c1d0f990b42b32ce73ebf9fab23d565ecc553ce401aa51
MD5 fb06bc1682ab39d637f1363213916688
BLAKE2b-256 4f90099cce24df7dfa6f22b22b88eb77fd4a1bbe20f0a70a4b9515940cb2a6f8

See more details on using hashes here.

File details

Details for the file pyrevolt-0.1.1a0-py3-none-any.whl.

File metadata

  • Download URL: pyrevolt-0.1.1a0-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for pyrevolt-0.1.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 0362c02aa0411771ecb720e848d6ff5b7bfff539b9bbc83b9918e9dc8eed4920
MD5 8f2458a5d67b4106a0614cab6103046f
BLAKE2b-256 319d069d4a87b687a80900e87f2c8a3ba3d8c0582f5bdba7fe9c9220415bb591

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