Skip to main content

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

Metadata

Release files for hangarmc-hangar 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hangarmc-hangar 1.0.0
File Size Uploaded Provenance Actions
hangarmc-hangar-1.0.0.tar.gz 10.5 kB Without provenance Details for hangarmc-hangar-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hangarmc-hangar 1.0.0
File Interpreter ABI Platform Actions
hangarmc_hangar-1.0.0-py3-none-any.whl Python 3 none any Details for hangarmc_hangar-1.0.0-py3-none-any.whl

Total release size: 22.1 kB

Release files / hangarmc-hangar-1.0.0.tar.gz

Download URL hangarmc-hangar-1.0.0.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
21b2222fc804d4093a82cc553750605bca737882cdf7c400637adc9cdff9963e
BLAKE2b-256 checksum
How to use checksums
97ee03371426956cc64bfb8019c6adde4943a93eb9629592044fd6e3f8e1e230
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.14 CPython/3.10.4 Linux/5.17.15-76051715-generic

Release files / hangarmc_hangar-1.0.0-py3-none-any.whl

Download URL hangarmc_hangar-1.0.0-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ddba975c4c5ab24f5a633b8e496d556836f5631bd32351897e658ba65ad280c
BLAKE2b-256 checksum
How to use checksums
8e47c5f4a701217bced08f4b0bf5817040993f9f8db6789e1f65d02c8593f203
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.14 CPython/3.10.4 Linux/5.17.15-76051715-generic

Security for hangarmc-hangar 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page