PteroDark is a Python library that serves as an API wrapper for the Pterodactyl panel. It provides an easy and convenient way to interact with the Pterodactyl API and manage your game servers.
Authenticate and manage API tokensGet information about servers, users, and nodesCreate, update, and delete serversStart, stop, restart, and reinstall serversManage server files and directoriesExecute commands on serversAnd much more!
To install PteroDark, simply use pip:
pip install PteroDark
Here's a simple example of how to use PteroDark to interact with the Pterodactyl API:
import PteroDark
# Create a client instance
client = PteroDark.Client(api_url='https://your-panel-url.com', api_key='your-api-key')
# Get information about a server
server_info = client.get_server_info(server_id='your-server-id')
print(server_info)
# Start the server
client.start_server(server_id='your-server-id')
# Execute a command on the server
output = client.send_command(server_id='your-server-id', command='say Hello, server!')
print(output)
For more detailed documentation and examples, please refer to the official PteroDark documentation.
Contributions to PteroDark are always welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request on the GitHub repository.
PteroDark is licensed under the MIT License. See the LICENSE file for more information.
Special thanks to the Pterodactyl team for providing the amazing panel and API that inspired this library.
Feel free to reach out if you have any questions or need further assistance. Happy coding with PteroDark!