Skip to main content

A modern, efficient and better way of interacting with the Hypixel API!

Project description

                      __  __            _           __   ________
                     / / / /_  ______  (_)  _____  / /  /  _/ __ \
                    / /_/ / / / / __ \/ / |/_/ _ \/ /   / // / / /
                   / __  / /_/ / /_/ / />  </  __/ /  _/ // /_/ /
                  /_/ /_/\__, / .___/_/_/|_|\___/_/  /___/\____/  
                        /____/_/  

HypixelIO

A Modern, Efficient and Easy way of interacting with the Hypixel API!

Made with Python

PYPI - License PYPI Download per Month PYPI PYPI Python Version Maintenance

Code Size Discord

Docs · Report a bug · Discussions · Discord

✨ Why choose HypixelIO?

  • Modern way of handling requests
  • Modern OOP based structure
  • Both Async and general support.
  • Simple rate handling, and caching.
  • Elegant design with Complete optimization.
  • Easy to use with a modern and simple design
  • Full API coverage

🚀 Installing

Python 3.7 or above is required!

Note: This library has caching modules downloaded when installed. If you need more adapters support, You should refer to the extra requires below.

# Windows
py -3 -m pip install -U HypixelIO

# Linux or MacOS
python3 -m pip install -U HypixelIO

# Install the nightly build
python3 -m pip install -U git+https://github.com/janaSunrise/HypixelIO

To get extra features, Here are the commands for them.

# Or use [speedups] to speed up only for async features
python3 -m pip install -U "HypixelIO[speedups]"

# Take advantage of caching by installing caching backends
python3 -m pip install -U "HypixelIO[cache]"

# If you need async caching for AsyncClient by installing caching backends
python3 -m pip install -U "HypixelIO[async-cache]"

# Or get all the features!
python3 -m pip install -U "HypixelIO[all]"

Usage

from hypixelio import Client, Converters

client = Client(api_key="your-api-key")

boosters = client.get_boosters()  # Get the boosters object

friends = client.get_friends(uuid="user's-uuid")  # Returns the Friends object
# OR if you don't know the UUID
friends = client.get_friends(name="user's-username")

print(boosters[0].ID)
print(friends.FRIENDS[0].RECEIVER_ID)

Async usage

from hypixelio.ext.asyncio import AsyncClient, AsyncConverters

client = AsyncClient(api_key="your-api-key")

boosters = await client.get_boosters()  # Get the boosters object

friends = await client.get_friends(uuid="user's-uuid")  # Returns the Friends object
# OR if you don't know the UUID
friends = await client.get_friends(name="user's-username")

print(boosters[0].ID)
print(friends.FRIENDS[0].RECEIVER_ID)

Find more examples here

📢 Changelog

If you're interested in seeing the Changelog, Go here!

🤝 Contributing

Contributions, issues and feature requests are welcome. After cloning & setting up project locally, you can just submit a PR to this repo and it will be deployed once it's accepted.

⚠️ It’s good to have descriptive commit messages, or PR titles so that other contributors can understand about your commit or the PR Created. Read conventional commits before making the commit message. You can find our contributing guidelines here

And, We have a branch called dev containing development code. So if you're contributing, Please contribute to that branch instead of the main branch.

💬 Get in touch

If you have various suggestions, questions or want to discuss things wit our community, Have a look at Github discussions or join our discord server!

Discord

🙌 Show your support

Be sure to leave a ⭐️ if you like the project!

▶ Links

Made by janaSunrise with ❤

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

HypixelIO-1.3.0.tar.gz (28.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

HypixelIO-1.3.0-py3-none-any.whl (43.8 kB view details)

Uploaded Python 3

File details

Details for the file HypixelIO-1.3.0.tar.gz.

File metadata

  • Download URL: HypixelIO-1.3.0.tar.gz
  • Upload date:
  • Size: 28.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for HypixelIO-1.3.0.tar.gz
Algorithm Hash digest
SHA256 39c8f0361120a81084a38b8dbbd1c8596fe692c94680b12b1ce7b9b790c4e04c
MD5 8075f057ae47cbae2c922e1824ea541f
BLAKE2b-256 dfe3e770cc46eccd4c8b1ffc7bdb1277a4ac39493122edbec8be3f92d31b86c3

See more details on using hashes here.

File details

Details for the file HypixelIO-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: HypixelIO-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 43.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for HypixelIO-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1e9712c7c4b3fd53e8475d45a4d62a5a17d8b7d731189ff5b81a101b396ba84
MD5 a81be45ed64594036ee6300e7d281b75
BLAKE2b-256 5e590ee669d4ee98dc6a645201d4724bcfc3f05a079b814163bf48cd041c18b5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page