Skip to main content

Easily access Bedwars stats of a Hypixel player.

Project description

Hypixel Bedwars Statistics API Wrapper

Build Status

Easily access the Bedwars statistics of any hypixel player with one line of code in Python!

New Features!

  • stat_grab() When doing bedwars("level, wins_bedwars", "Heknon") It will return this list ['Level: 105', 'wins_bedwars: 966'] What if you have a list of lots of statistics and want a specific statistic? Examples:

    heknon = bedwars("level, wins_bedwars", "Heknon") stat_grab("Level", heknon) Besure to write the specified statistic as it is in the outputed list with or without the colon

Examples

You can add you API Key using addkeys("APIKEY HERE") after adding a key you need to run the program once so it will create the file to store the key. You can call as many statistics as you want for a player and its considered one request. bedwars("level, Experience, kills_bedwars, etc...", "NAME")


  • Example Code
from BWStatsWrapper import addkeys, stat_grab, bedwars
addkeys("APIKEY, Another API Key <not necessary right now as it won't alternate between keys>")
heknon = bedwars("level, wins_bedwars", "Heknon")  # DO NOT MAKE MORE THEN 120 OF THESE REQUESTS PER MINUTE
gamerboy80 = bedwars("level, wins_bedwars", "gamerboy80")
print(stat_grab("wins_bedwars", heknon))  # --> OUTPUT: 966
print(stat_grab("wins_bedwars", gamerboy80))  # --> OUTPUT: 21258
print(stat_grab("Level", gamerboy80))  # --> OUTPUT: 1154
This code will return an error on its first run but not on it's second run as it is adding keys while also requesting for data.

TODO

Add alternating API Keys.

License

MIT

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

BWStatsWrapper-0.2.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

BWStatsWrapper-0.2-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file BWStatsWrapper-0.2.tar.gz.

File metadata

  • Download URL: BWStatsWrapper-0.2.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.12.4 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for BWStatsWrapper-0.2.tar.gz
Algorithm Hash digest
SHA256 7b1770d78973144120a5498ce3ac5abe41905784758ef858d71b0df602311800
MD5 539cdebab0dc2e34eb75893f65c249b0
BLAKE2b-256 8689bd8ee7bc7836be3e73a34351cc388866a4947e59c594ce05d83766db943a

See more details on using hashes here.

File details

Details for the file BWStatsWrapper-0.2-py3-none-any.whl.

File metadata

  • Download URL: BWStatsWrapper-0.2-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.12.4 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for BWStatsWrapper-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8c1891488b19b231227315b04d49979a85791b3989d234a12a9bc4d7bcd1fbde
MD5 b6197b5552db348cda0fd1e98bda091a
BLAKE2b-256 36268632c81b2d9f87050d40dcff20bc7284d0f88426bef36edc1a13eb028217

See more details on using hashes here.

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