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.2a0.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

pyrevolt-0.1.2a0-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyrevolt-0.1.2a0.tar.gz
  • Upload date:
  • Size: 22.1 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.2a0.tar.gz
Algorithm Hash digest
SHA256 4048d38aaa6445834cff5ed1eb90a36fb8ce4daec0f89ce3d1c1988656888698
MD5 b393f7efe86d2edca18e94910e3ff40b
BLAKE2b-256 c9999e095a53903fc115eaf0b37eed355d36732e90a6fc6f615129b8dc9bb09f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyrevolt-0.1.2a0-py3-none-any.whl
  • Upload date:
  • Size: 24.9 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.2a0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ee317a4459cd8f6f959b8b46cb15e569aba9284933f7c321c8c00a34a02d775
MD5 5326184a49d2d67412d7e2f54685c551
BLAKE2b-256 14c6b4d8bfc120ed49cd488ce3718360f5ac4340416763d34c1264f625808c55

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