Skip to content

6A31/stats5b5t-documentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

API wrapper for 5b5t's statistics

THIS IS JUST THE DOCUMENTATION REPO. THE LIBRARY REPO CAN BE FOUND HERE

pip install stats5b5t

Tested on: Python 3.9

Documentation

Click on the modules to be taken to the detailed Documentation

Modules: api, tools, errors

Usage

from stats5b5t import api

stats = api.Statistics()

r = stats.request("uuid here")

print(stats.kills(r))

With debugging:

from stat5b5t import api, tools

stats = api.Statistics()
tests = tools.Debugging()

r = stats.request("uuid here")

print(stats.kills(r))
print(tests.isvalid(r))
print(tests.missmatch(r))
print(tests.errmsg(r))

Username instead of UUID

from stats5b5t import api

stats = api.Statistics()

uuid = stats.getuuid("playername")
r = stats.request(uuid)

print(stats.deaths(r))

Modules: api, tools

api

Handles requests and data sorting for you.

tools

Handles debugging and checks for you.