Skip to main content

Pterodactyl panel API wrapper

Project description

Pythactyl

This Pterodactyl panel API wrapper is an unofficial wrapper. I made this in my free time and intend to improve as I go along

Install

python -m pip install git+https://github.com/IAmGadget/Pythactyl

Client

from Pythactyl import Client

client = client.PterodactylClient('URL', 'API KEY')

client.account() # Retrieves the current account's information

client.updateEmail('currentPassword', 'NewPassword', 'NewPassword')

client.listServers() # This will return a JSON object of all the servers the client currently owns. (This is not including admin servers.)

# Send a simple power action to your server

server = client.getServer('identifier')['attributes']['identifier']

cliend.sendPowerAction(server, "start")

Admin

from Pythactyl import admin

admin = admin.PterodactylClient('URL', 'API KEY')

user = admin.createUser('email@email.com', 'Bob', 'Simmons', root_admin=True)

admin.editUser(user['id'], username="INeedANewName")

Information

I will be uploading documentation when the wrapper is completed. If you wish to know more syntax, you'll either have to source code dive or DM me: Gadget#0975.

Need help?

Join my discord for more support on this wrapper: https://discord.gg/SBXBd8sC5f

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

Pythactyl-2.16.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

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

Pythactyl-2.16-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file Pythactyl-2.16.tar.gz.

File metadata

  • Download URL: Pythactyl-2.16.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10

File hashes

Hashes for Pythactyl-2.16.tar.gz
Algorithm Hash digest
SHA256 d4cda70f262e789ea39a30f3e9be9ad19f3450487382495c9acd5038d61eca67
MD5 55c6d29f4a2f9db321f4014f85af77ff
BLAKE2b-256 db0df71db6afefd01795c80252fa3d3020735be9360bd759163ce0de5dfe84b9

See more details on using hashes here.

File details

Details for the file Pythactyl-2.16-py3-none-any.whl.

File metadata

  • Download URL: Pythactyl-2.16-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10

File hashes

Hashes for Pythactyl-2.16-py3-none-any.whl
Algorithm Hash digest
SHA256 a2b4d450701c543fbc344b1476f319001bc08b15b6f5f6ad9fcfc5e5a067ad1d
MD5 52c616396b0bd2861da7eaa59afe2dfb
BLAKE2b-256 5e6baba48dd934a86fcebd420077e4f742e7ac41eead31ba0f21cdc51e226fa4

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