Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

calagoapi-hungerbridge

A CalagoAPI extension for HungerBridge, the Paper/Fabric mod that exposes a signed HTTP API inside a Minecraft server (commands without RCON, players, TPS, memory, ...).

pip install calagoapi calagoapi-hungerbridge
from calagoapi import Panel
from calagoapi.extensions import enable

enable('hungerbridge', config={'token': 'bot:9f2c...'})   # "tokenId:secret"

panel = Panel(url='https://panel.example.com', api_key='...')
server = panel.servers.getMinecraftServer('abc123')

print(server.hungerbridge.players())       # ['Steve', 'Alex']
print(server.hungerbridge.tps())           # {'tps': 20.0, 'tps_1m': ..., ...}
server.hungerbridge.run('say Hello from Python')

enable('hungerbridge') also enables its dependency, version_changer (installed automatically with this package), which install() uses to detect the server type and Minecraft version.

Connecting

The bridge URL defaults to the server's address (from the panel) with port 1913. Override it for every server through the config, or per server:

enable('hungerbridge', config={'url': 'http://10.0.0.5:1913', 'token': 'bot:9f2c...'})

server.hungerbridge.connect('http://10.0.0.6:1913', 'other:41ab...')

Tokens come from the server console: hb token create <tokenId> <policyId> prints a one-time pickup URL that returns the secret.

Methods

Area Methods
Health ping(), isReachable(), authCheck(), status(), info(), meta()
Players players(), playerCount()
Console run(command, silent=False, show_console=False), log(message, level='INFO'), stop()
World tps(), mspt(), chunks(), entities(), time(), weather()
System uptime(), cpu(), memory(), gc(), threads(), network(), disk()
Install install(mc_version=None, loader=None, release=None), findRelease(...)

Errors raise calagoapi_hungerbridge.HungerBridgeError (a CalagoAPIError).

Configuration

Key Default Meaning
url None Bridge URL for every server; None uses the server address + port
port 1913 Bridge port
token None "tokenId:secret"
timeout 10 Seconds
verify True Verify TLS certificates
mc_version 'auto' For install(): 'auto' (installed version), 'latest' or e.g. '1.21.11'
release 'latest' HungerBridge release tag for install()
repository 'hungernet/hungerbridge' GitHub repository
github_api 'https://api.github.com' GitHub API URL

Async

from calagoapi import AsyncPanel

async with AsyncPanel(url=..., api_key=...) as panel:
    server = await panel.servers.getMinecraftServer('abc123')
    print(await server.hungerbridge.players())

Metadata

Release files for calagoapi-hungerbridge 1.0.dev1

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

Source distribution (sdist)

Source distribution for calagoapi-hungerbridge 1.0.dev1
File Size Uploaded Provenance Actions
calagoapi_hungerbridge-1.0.dev1.tar.gz 13.8 kB With provenance Details for calagoapi_hungerbridge-1.0.dev1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for calagoapi-hungerbridge 1.0.dev1
File Interpreter ABI Platform Actions
calagoapi_hungerbridge-1.0.dev1-py3-none-any.whl Python 3 none any Details for calagoapi_hungerbridge-1.0.dev1-py3-none-any.whl

Total release size: 24.4 kB

Release files / calagoapi_hungerbridge-1.0.dev1.tar.gz

Download URL calagoapi_hungerbridge-1.0.dev1.tar.gz
Size 13.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4c7dfbca036bde9b3d9dbd7bb2dfe9324d82c2d581830bd5e6227e8766c36622
BLAKE2b-256 checksum
How to use checksums
7be1a18c1edee0f59da28669033db6e330f15774ba863d7d0cf54f2c86ed9f84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Release files / calagoapi_hungerbridge-1.0.dev1-py3-none-any.whl

Download URL calagoapi_hungerbridge-1.0.dev1-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c5e33cad1277204f80dfcc0e3ac9e2e155e21eaa076bbb5acf806e6ee591524a
BLAKE2b-256 checksum
How to use checksums
a63d6e9feaea9aac16ecc42d68c383f0a5044815e4049d38db5083d3f93deb9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Security for calagoapi-hungerbridge 1.0.dev1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for calagoapi_hungerbridge-1.0.dev1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

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