hypixel api python
# Import the Module
import PyPixel
# Importing asyncio so we can call coroutines
import asyncio
# Initialize the Hypixel class
hypixel = PyPixel.Hypixel(api_key="API Key")
async def main():
# Get tha player's UUID
uuid = await hypixel.get_uuid('awsomo28')
# Get the player
player = await hypixel.get_player(uuid)
# Prints the player's rank
print(player.rank)
# run the above coroutine
loop = asyncio.get_event_loop()
loop.run_until_complete(main())