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 details)

Uploaded Source

File details

Details for the file stats5b5t-0.1.5.tar.gz.

File metadata

  • Download URL: stats5b5t-0.1.5.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for stats5b5t-0.1.5.tar.gz
Algorithm Hash digest
SHA256 56bebabed8683a30fe210e35e2a9ffb5c45d96a0c0fbbd396d6e1dfe9d61487b
MD5 c9f99380bcb680ccec71dec1c6dae73d
BLAKE2b-256 33653c235595ccfef4e367aef1af655ede00bd7ccfdbd6d5dc31d47490f312f6

See more details on using hashes here.

Supported by

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