Caution
Package is still in very early development. Do not use in a production environment!
Warning
All current code and structure is subject to change.
A Python wrapper for the Pterodactyl API.
- [User].update(), [Node].delete(), etc.
-
- User
-
- Allocations
-
- Nodes
- .setter functions that update (as many details as they can) in panel
-
- User
-
- Allocations
-
- Nodes
- Implement pagination
- Add include arguments to everything
- Improve update_user to allow for multiple fields at once
import pterodactyl
panel_url:str = "http://panel.example.com/"
pterodactyl_application_key:str = "ptla_shhhhhhhhhhhhhhhhhhhhh!"
Panel = pterodactyl.API.Application(panel_url,pterodactyl_application_key)
user = Panel.Users.get_user(1)
user.set("first_name","Tato")