Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/itstato/pterodactylpy

A Python wrapper for the Pterodactyl API.
https://github.com/itstato/pterodactylpy

pterodactyl pterodactyl-api pterodactyl-api-wrapper pterodactyl-panel pterodactyl-panel-api python python-library python-module python-package python3 python310

Last synced: about 2 months ago
JSON representation

A Python wrapper for the Pterodactyl API.

Awesome Lists containing this project

README

        

# 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.
- - [x] 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

```python title="get_user.py"
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")
```