Game Stat Library with Tracker API
Project description
TrackerGG
TrackerGG is a Tracker API Client
Install
pip install TrackerGG
Use
Example of getting csgo profile
import TrackerGG # import this library
import asyncio # asyncio library for calling async function
client = TrackerGG.Client('TOKEN') # replace 'TOKEN' with your token value.
def GetSync(profile):
return client.get_csgo_profile(profile) # sync get
async def GetAsync(profile):
return await client.async_get_csgo_profile(profile) #async get
print(GetSync("DevRuby").stats.kills.value) # print the value of kills with sync function
print(asyncio.run(GetAsync("DevRuby")).stats.kills.value) # print the value of kill with async function
Exceptions
ApiError
Incorrect Api Key
UserError
Can't find the user
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
TrackerGG-1.0.2.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for TrackerGG-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc2e6c50b3370bffecca29e70b1e7bea240e6094b68926307d73c8294c12934b |
|
MD5 | 71be7a9d4b36b88e4434e2336ab4032f |
|
BLAKE2b-256 | a2244380ffe13b519bafd7e6b43cb55845af4e187bf05fbc2bcbfad950331e32 |