A easyly to use Python framework forked from Discord API | Versacord Framework
Project description
Versacord Framework
A modern, easy-to-use, feature-rich, and async-ready API wrapper for Discord written in Python.
Key Features
Modern Pythonic API using async and await
Proper rate limit handling
Optimised in both speed and memory
Installing
Python 3.8 or higher is required
Install the initial dependeces:
# aiohttp
pip install aiohttp==3.8.0
# typing_extensions
pip install typing-extensions==4.2.0
To install the library without full voice support, you can just run the following command:
# Linux/macOS
python3 -m pip install -U versacord
# Windows
py -3 -m pip install -U versacord
Otherwise to get voice support you should run the following command:
# Linux/macOS
python3 -m pip install -U "versacord[voice]"
# Windows
py -3 -m pip install -U versacord[voice]
To install additional packages for speedup, run the following command:
# Linux/macOS
python3 -m pip install -U "versacord[speed]"
# Windows
py -3 -m pip install -U versacord[speed]
To install the development version, do the following:
$ git clone https://github.com/owera/versa-framework/
$ cd versacord
$ python3 -m pip install -U .[voice]
Optional Packages
Please note that on Linux installing voice you must install the following packages via your favourite package manager (e.g. apt, dnf, etc) before running the above commands:
libffi-dev (or libffi-devel on some systems)
python-dev (e.g. python3.8-dev for Python 3.8)
Quick Example
from versacord.ext import commands
bot = commands.Bot()
@bot.slash_command(description="Replies with pong!")
async def ping(interaction: versacord.Interaction):
await interaction.send("Pong!", ephemeral=True)
bot.run("token")
NOTE: It is not advised to leave your token directly in your code, as it allows anyone with it to access your bot. If you intend to make your code public you should store it securely.
Links
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file versacord-1.0.0.tar.gz.
File metadata
- Download URL: versacord-1.0.0.tar.gz
- Upload date:
- Size: 923.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c495860a1936ba1cb060cd6dc46576d9f0f8256ed39f996d85e30c9614937e27
|
|
| MD5 |
91b21c5cbcffa3abc6181ad5f4f6ccc1
|
|
| BLAKE2b-256 |
94b624bbb43de55034d015c68f79b1b42ffd5867483f73d457ead7290fec6b9e
|
File details
Details for the file versacord-1.0.0-py3-none-any.whl.
File metadata
- Download URL: versacord-1.0.0-py3-none-any.whl
- Upload date:
- Size: 1.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8ec6dcc2b58a790678d18cb24f07a522c74481a7b86d62bd906597c2c976c2b
|
|
| MD5 |
72d65f929994c9c80dafb742a652c344
|
|
| BLAKE2b-256 |
c9208546d21a4ff09d1e6f6d105b6b46227c5d7cc058441197fb44c6875c9982
|