Revolt.py
An async library to interact with the https://revolt.chat API.
You can join the support server here and find the library's documentation here.
Installing
You can use pip to install revolt.py. It differs slightly depending on what OS/Distro you use.
On Windows
py -m pip install -U revolt.py # -U to update
On macOS and Linux
python3 -m pip install -U revolt.py
Example
More examples can be found in the examples folder.
import revolt
import asyncio
class Client(revolt.Client):
async def on_message(self, message: revolt.Message):
if message.content == "hello":
await message.channel.send("hi how are you")
async def main():
async with revolt.utils.client_session() as session:
client = Client(session, "BOT TOKEN HERE")
await client.start()
asyncio.run(main())
Metadata
Release files for revolt.py 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| revolt.py-0.2.0.tar.gz | 49.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| revolt.py-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 119.9 kB
Release files / revolt.py-0.2.0.tar.gz
| Download URL | revolt.py-0.2.0.tar.gz |
|---|---|
| Size | 49.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06d54d3796df20d7382502c25060fe3eed061f8d200626f3ed171e927ce8b371
|
|
BLAKE2b-256 checksum How to use checksums |
bee0fa69c5e9ae0f991d4d95922b13095383ef63730d6adc2122ec0c1904d096
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.6
|
Release files / revolt.py-0.2.0-py3-none-any.whl
| Download URL | revolt.py-0.2.0-py3-none-any.whl |
|---|---|
| Size | 70.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d40876db30ff23904e3bc46cfda62ddfff8abf4147df41d2811b9a565cefc4ae
|
|
BLAKE2b-256 checksum How to use checksums |
ad00e521212d3ce2944de143dade7e475bb1f048dfc1a15785884a9e38c38aea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.6
|