Skip to main content

An API wrapper for the Hypixel API

Project description

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

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.7.1.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

hypixelaPY-1.7.1-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

File details

Details for the file hypixelaPY-1.7.1.tar.gz.

File metadata

  • Download URL: hypixelaPY-1.7.1.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for hypixelaPY-1.7.1.tar.gz
Algorithm Hash digest
SHA256 e020457c6aba09c43d37adf5741f12b888d1947a4498d66cb6a935415d603be0
MD5 48709ef20bad1a6a5bb59bedfe43fc53
BLAKE2b-256 1de5874568e3ca7d43d25872447fb5b333985b4e7bf8274f6f711f8f5e7a718c

See more details on using hashes here.

File details

Details for the file hypixelaPY-1.7.1-py3-none-any.whl.

File metadata

  • Download URL: hypixelaPY-1.7.1-py3-none-any.whl
  • Upload date:
  • Size: 26.3 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for hypixelaPY-1.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1c6574389422b5a3db9e21767b7595f14ca9e78728baa357ed5d90b81b2eb322
MD5 3ea73618a6db856a80f7fce58b1df8a6
BLAKE2b-256 90bcac0c659a6722d73e29cfa658c06866c7501fe9ac34b7c6ab29601d8ed739

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