An API wrapper for the Botify API
Project description
Botify API
Official wrapper for the Botify API.
⚙️ Installation
Python 3.9 or higher is required
pip install botify-api
🔑 How to get an API key?
- Invite Botify to your Discord server or to your Discord account
- Run
/premium api
🚀 Example Usage
The API key can be passed as a parameter or set as the environment variable BOTIFY_KEY.
For more information, see to our documentation.
Sync Example
from botify import BotifyAPI
api = BotifyAPI(api_key="[YOUR_API_KEY]")
user_stats = api.get_user_stats(123456789) # Replace with user ID
Async Example
import asyncio
from botify import AsyncBotifyAPI
api = AsyncBotifyAPI(api_key="[YOUR_API_KEY]")
async def main():
user_stats = await api.get_user_stats(123456789) # Replace with user ID
await api.close()
asyncio.run(main())
You can also use an asynchronous context manager (recommended)
async def main():
async with api as con:
user_stats = await con.get_user_stats(123456789) # Replace with user ID
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
botify_api-0.0.1.tar.gz
(6.1 kB
view details)
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 botify_api-0.0.1.tar.gz.
File metadata
- Download URL: botify_api-0.0.1.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec509cd121211b788c6241040e2a2a5a023c4c9975790820b57e859db3df5563
|
|
| MD5 |
23b7891e8ec8a0c5e63b37f028f9b464
|
|
| BLAKE2b-256 |
74a1346229c792316e6bbff17d83bdbe1e350503ba817f4a922b4ff7b7f68269
|
File details
Details for the file botify_api-0.0.1-py3-none-any.whl.
File metadata
- Download URL: botify_api-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e19357496f61fe29cf2bdfd804d8135119fb25b056420dc4db8d189d977d814
|
|
| MD5 |
b5883106d1c5f21099a26153c211fb9d
|
|
| BLAKE2b-256 |
2ae58134b28a1da0d8ab2ed858fa6c2fc81acc39c7055bca62a7f65b2ca2f6fe
|