Skip to content

ItsTato/PterodactylPy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PterodactylPy

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.

Random Notes

  • [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

Example

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")