An async python API Wrapper for the Tatsu API.
Project description
Tatsumaki.py
An async python api wrapper for the Tatsu API.
Set up guide:
- Download the library with the
pip install tatsu.pycommand - Import the library:
from tatsu.wrapper import ApiWrapper - Check the wiki for more information: Wiki
Code examples:
- Get the information of a user
from tatsu.wrapper import ApiWrapper
async def get_profile():
wrapper = ApiWrapper(key="API_KEY_HERE")
user_profile = await wrapper.get_profile(274561812664549376)
return user_profile.credits
- Get the ranking of a user:
from tatsu.wrapper import ApiWrapper
async def get_member_ranking():
wrapper = ApiWrapper(key="API_KEY_HERE")
result = await wrapper.get_member_ranking(573885009820254239, 274561812664549376)
return result.rank
- Get the rankings of a server with an offset
from tatsu.wrapper import ApiWrapper
async def get_ranks():
wrapper = ApiWrapper(key="API_KEY_HERE")
result = await wrapper.get_guild_rankings(573885009820254239, offset=100)
return result.rankings[0].rank # This will be 101
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
tatsu_py-1.1.0.tar.gz
(7.0 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 tatsu_py-1.1.0.tar.gz.
File metadata
- Download URL: tatsu_py-1.1.0.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9273d9046f824943d2e00673d618334580e2c2d9054376540b2d7dfd82f047ab
|
|
| MD5 |
8307265c30c20c4eebab0fca7b6d28e7
|
|
| BLAKE2b-256 |
901f82bcaaeaa598338cc0cb163dfb8b018ddb37f16df4e213c80f663db89ece
|
File details
Details for the file tatsu.py-1.1.0-py3-none-any.whl.
File metadata
- Download URL: tatsu.py-1.1.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91c6c412f2927adfbbdc4ca2665665d67877f9a849ce44aed545f202e05b5fc8
|
|
| MD5 |
f0229d9aa27ff7d5952a084193ef9915
|
|
| BLAKE2b-256 |
a3e124095417e09cc38939a5bd137b5283fb58b35e0fc4f57c8a8f365615097e
|