Skip to main content

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:

  1. Download the library with the pip install tatsu.py command
  2. Import the library: from tatsu.wrapper import ApiWrapper
  3. 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.0.4.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

tatsu.py-1.0.4-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page