An API wrapper for the Hypixel API
Project description
hypixelaPY - Hypixel API wrapper written in Python
Maintained by Myer (also known as myerfire, MyerFire)
This library is an async wrapper for the Hypixel API. It also contains some features and wrappers on relevant features of the Mojang API and session server.
Features
- Getting a player from Hypixel from UUID, name, or an unknown source (will try to interpret as UUID first, then name)
- Names will always be converted to a UUID using the Mojang API
- Getting a player's name history from Mojang from UUID
- Getting the official Hypixel leaderboards
Installation
hypixelaPY is available from the official pYpI package index.
python -m pip install -U hypixelaPY
Documentation
See docs.md
Quick Start
from hypixelaPY import Hypixel
import asyncio
API_KEY = "hahagetbaited"
# if it isn't obvious enough, replace this string
# with your API key obtained by running /api new on Hypixel
async def main():
hypixel = await Hypixel(API_KEY)
player = await hypixel.player.get(name="Technoblade")
print(f"[{player.rank.name}] {player.name}")
if __name__ == "__main__":
asyncio.get_event_loop().run_until_complete(main())
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
hypixelaPY-1.4.4.tar.gz
(13.3 kB
view hashes)
Built Distribution
hypixelaPY-1.4.4-py3-none-any.whl
(24.7 kB
view hashes)
Close
Hashes for hypixelaPY-1.4.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e6b49c8a8c4ff712dd1d8099efd567712d998518027d63c88d32c536a9114c0 |
|
MD5 | a9d612ae9b0b14b6a950c80f4435ccdd |
|
BLAKE2b-256 | d140426235d4a179d719fe4e7f6ca8554aa61cfdd83cb2647f60037b5119acc7 |