Pterodactyl panel API wrapper
Project description
Pythactyl
This python API wrapper is one of my first largest API wrapper's I have ever done. I do expect there to be bugs. Feel free to contribute
Install
python -m pip install 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.
Contributors
IAmGadget
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Pythactyl-1.1.tar.gz.
File metadata
- Download URL: Pythactyl-1.1.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4b8ad3bd9b5e1bfec37798804ae975987b23be6764b431bcc891678f91b872b
|
|
| MD5 |
03427c2b1204492750df556ab28bc349
|
|
| BLAKE2b-256 |
8d74a7f72a541882c6f9f23fd9b84549db8f05dd837c6e28443017c39b596dc8
|
File details
Details for the file Pythactyl-1.1-py3-none-any.whl.
File metadata
- Download URL: Pythactyl-1.1-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b886af30b5809d584c536c158edaed6e6287f952c8a55846d156fdb467ac7b9
|
|
| MD5 |
d80820a23866fe916652f08977b20849
|
|
| BLAKE2b-256 |
9693e6ab34af8b994d15cfcd48c846c44ff5caf54f76ea0351fc8c7587fa1340
|