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 1 month ago
JSON representation
A Python wrapper for the Pterodactyl API.
- Host: GitHub
- URL: https://github.com/itstato/pterodactylpy
- Owner: ItsTato
- License: bsd-3-clause
- Created: 2024-09-09T00:50:01.000Z (9 months ago)
- Default Branch: edge
- Last Pushed: 2025-01-16T06:48:22.000Z (5 months ago)
- Last Synced: 2025-04-01T17:57:54.628Z (2 months ago)
- Topics: pterodactyl, pterodactyl-api, pterodactyl-api-wrapper, pterodactyl-panel, pterodactyl-panel-api, python, python-library, python-module, python-package, python3, python310
- Language: Python
- Homepage:
- Size: 36.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pterodactyl.py
> [!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 (Ordered in priority)
I've switched to a different development methodology. Instead of building this blindly, I'm going to make use of it in another project. This way, I can slowly add what I really need and fix the most important bugs. I think this gives me the right to call it, "purpose-built" as well, no?
- [x] Remove bloat
- [x] ~~Rewrite into async. Yes, that's right. I'm doing that.~~ No, I'm not doing that. Mind fog cleared.
- [ ] Remove all methods like "update_user". Make them more specific.
- [ ] [User].update(), [Node].delete(), etc.
- - [x] User
- - [ ] Allocations
- - [ ] Nodes
- [ ] Implement pagination
- [ ] Add include arguments to everything## Example
```python title="get_user.py"
import pterodactylpanel_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")
```