An easy to use Python wrapper for the Pterodactyl Panel API.
Project description
pydactyl
======================
[![Latest docs][docs-img]][docs]
An easy to use Python wrapper for the Pterodactyl Panel API.
Getting Started
from pydactyl import PterodactylClient
# Create a client to connect to the panel and authenticate with your API key.
client = PterodactylClient('https://panel.mydomain.com', 'MySuperSecretApiKey')
# Get a list of all servers the user has access to
my_servers = client.client.list_servers()
# Get the unique identifier for the first server
srv_id = my_servers.json()['data'][0]['attributes']['identifier']
# Check the utilization of the server
srv_utilization = client.client.get_server_utilization(srv_id)
srv_utilization.json()
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
py-dactyl-0.0.1a0.tar.gz
(5.7 kB
view hashes)
Built Distribution
Close
Hashes for py_dactyl-0.0.1a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef5e230c6140a9cfd22c0b394c7a8d71c2e3baf0e4f387622901e30364b7725b |
|
MD5 | afbf904dd98f81802a3d9b93593a74fb |
|
BLAKE2b-256 | c30eb1a0626acbe50269622d73ffa9a650f95789dd9bf63ec443339f250fa774 |