Hangar SDK for python
Project description
hangarmc-hangar
pythonic type-hinted hangar API wrapper
Installation
hangarmc-hangar requires python 3.9 or above
# PIP3
pip3 install hangarmc-hangar
# PIP
pip install hangarmc-hangar
# Poetry
poetry add hangarmc-hangar
API
All functions and classes are properly type hinted and documented with quotes/comments. Please file an issue or pull request if any issues are found.
Basic Usage
Example
from hangarmc_hangar import Hangar, HangarApiException
# Create an SDK instance
hangar = Hangar()
try:
# Get all projects
projects = hangar.search_projects()
# Output data
print(f"Project amount: {projects.pagination.count}")
for project in projects.result:
print(project.name)
except HangarApiException as e:
raise
Output
$ python sketch.py
Project amount: 32
CoolProject
NotQuests
EndBiomeFixer
... and on
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
hangarmc-hangar-1.0.0.tar.gz
(10.5 kB
view hashes)
Built Distribution
Close
Hashes for hangarmc_hangar-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ddba975c4c5ab24f5a633b8e496d556836f5631bd32351897e658ba65ad280c |
|
MD5 | 6915febd75286a1182a9627b2ffcf062 |
|
BLAKE2b-256 | 8e47c5f4a701217bced08f4b0bf5817040993f9f8db6789e1f65d02c8593f203 |