Skip to main content

API Wrapper for 5b5t.org

Project description

5b5t statistics

API wrapper for 5b5t's statistics

pip install stats5b5t

Tested on: Python 3.9

Documentation

You can find a detailed documentation here

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.

Updates

I will update this from time to time to add new features, and I will for sure update it whenever there are API changes to stay up to date.

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

stats5b5t-0.1.5.tar.gz (3.0 kB view hashes)

Uploaded Source

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