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())
Metadata
Release files for hypixelaPY 1.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hypixelaPY-1.7.1.tar.gz | 14.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hypixelaPY-1.7.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 40.6 kB
Release files / hypixelaPY-1.7.1.tar.gz
| Download URL | hypixelaPY-1.7.1.tar.gz |
|---|---|
| Size | 14.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e020457c6aba09c43d37adf5741f12b888d1947a4498d66cb6a935415d603be0
|
|
BLAKE2b-256 checksum How to use checksums |
1de5874568e3ca7d43d25872447fb5b333985b4e7bf8274f6f711f8f5e7a718c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.5
|
Release files / hypixelaPY-1.7.1-py3-none-any.whl
| Download URL | hypixelaPY-1.7.1-py3-none-any.whl |
|---|---|
| Size | 26.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c6574389422b5a3db9e21767b7595f14ca9e78728baa357ed5d90b81b2eb322
|
|
BLAKE2b-256 checksum How to use checksums |
90bcac0c659a6722d73e29cfa658c06866c7501fe9ac34b7c6ab29601d8ed739
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.5
|