Skip to main content

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


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)

Uploaded Source

Built Distribution

py_dactyl-0.0.1a0-py3-none-any.whl (11.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page