Skip to main content

An easy to use Python wrapper for the Pterodactyl Panel API.

Project description

pydactyl

Latest build Latest docs Coverage Latest version

An easy to use Python wrapper for the Pterodactyl Panel API.

State of the project

This wrapper is still very much a work in progress. Not all APIs are implemented, and the way results are returned may change until the wrapper is feature complete.

If you do encounter problems, find APIs that haven't been implemented, or have a feature request please file a Github issue.

Installing

An early version of the package can be found on pip, however it won't be updated until the interface is more solidified. A more feature complete version should be available soon.

To install the pip version:

pip install py-dactyl

New versions won't be published to pip every day, so until the rate of change slows down the only way to get the latest version will be from Github.

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[0]['identifier']

# Check the utilization of the server
srv_utilization = client.client.get_server_utilization(srv_id)
print(srv_utilization)

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.1.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_dactyl-0.1.0-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file py-dactyl-0.1.0.tar.gz.

File metadata

  • Download URL: py-dactyl-0.1.0.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.0

File hashes

Hashes for py-dactyl-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1d30647e443c6dcdc4f00d1e44bce18faf530f4ca7e0945f8232ae27bd7f5e1c
MD5 85be15939adf14645c6615725250088b
BLAKE2b-256 cd4b316f60d4628061f8bbe462b2fffca2bad37e012685a175cabda2c3cf7d45

See more details on using hashes here.

File details

Details for the file py_dactyl-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: py_dactyl-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.0

File hashes

Hashes for py_dactyl-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3824749ae94f3b1756c56d3f5cab209429dc58b4cb6b5e139d1ca293bc65643c
MD5 9cf7c2055427708c3e7c321b29fcc928
BLAKE2b-256 7bc96684ff5cd2ccf15913e6247b26b8392f6ebec2a2bba91843ec140f874446

See more details on using hashes here.

Supported by

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