Skip to content

xiaomyer/hypixelaPY

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hypixelaPY - Hypixel API wrapper written in Python

widget

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

About

Hypixel API wrapper written in Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published