HungerLib is a Python library that gives you a clean, high-level interface for automating Pterodactyl game server panels. Whether you need to control server power states, manage files, trigger scheduled tasks, or stream Minecraft console commands over HungerBridge, HungerLib provides ready-to-use classes and utilities so you can focus on your automation logic rather than raw HTTP calls.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/iFamishedX/HungerLib/llms.txt
Use this file to discover all available pages before exploring further.
Quickstart
Install HungerLib and connect to your first Pterodactyl server in minutes.
Configuration
Load YAML-backed config files into typed dataclasses with fallback support.
Server Control
Start, stop, monitor resources, and manage files across generic and Minecraft servers.
HungerBridge
Connect to the HungerBridge v2 API for TPS, player counts, and console commands.
Scheduling
Snap events to clock boundaries, run countdown callbacks, and wait for server states.
API Reference
Full reference for every class, method, parameter, and exception in HungerLib.
What’s included
Panel Client
Authenticated HTTP client wrapping all Pterodactyl Client API endpoints.
GenericServer
Universal server class for power, resources, files, backups, databases, and schedules.
MinecraftServer
Extends GenericServer with Minecraft-specific TPS, players, and broadcast utilities.
BridgeClient
Python client for the HungerBridge v2 REST API running on your Minecraft server.
MessageRouter
Multi-destination logger: terminal, in-game broadcast, and rotating file logs.
Validator
Schema validator for config dataclasses with typed error levels and human-readable reports.
Install
Read the guides
Dive into Core Concepts to learn how Panel, GenericServer, and BridgeClient fit together.