An async python api wrapper for the Tatsu API.
pip install tatsu.py
commandfrom tatsu.wrapper import ApiWrapper
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
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
```python
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