Python wrapper for the revolt.chat API
Project description
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())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
revolt.py-0.2.0.tar.gz
(49.3 kB
view details)
Built Distribution
revolt.py-0.2.0-py3-none-any.whl
(70.6 kB
view details)
File details
Details for the file revolt.py-0.2.0.tar.gz
.
File metadata
- Download URL: revolt.py-0.2.0.tar.gz
- Upload date:
- Size: 49.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06d54d3796df20d7382502c25060fe3eed061f8d200626f3ed171e927ce8b371 |
|
MD5 | b70de4535460fefe5f2b7f16437dcbfd |
|
BLAKE2b-256 | bee0fa69c5e9ae0f991d4d95922b13095383ef63730d6adc2122ec0c1904d096 |
File details
Details for the file revolt.py-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: revolt.py-0.2.0-py3-none-any.whl
- Upload date:
- Size: 70.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d40876db30ff23904e3bc46cfda62ddfff8abf4147df41d2811b9a565cefc4ae |
|
MD5 | a02a3d24d195f1ce6589afe64073fbb9 |
|
BLAKE2b-256 | ad00e521212d3ce2944de143dade7e475bb1f048dfc1a15785884a9e38c38aea |