Skip to main content

Pterodactyl API wrapper

Project description

PteroDark

Language

WARNING: the library is under development and may not work as described below

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.

Features

  • Authenticate and manage API tokens
  • Get information about servers, users, and nodes
  • Create, update, and delete servers
  • Start, stop, restart, and reinstall servers
  • Manage server files and directories
  • Execute commands on servers
  • And much more!

Installation

To install PteroDark, simply use pip:

pip install PteroDark

Usage

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

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.

License

PteroDark is licensed under the MIT License. See the LICENSE file for more information.

Acknowledgements

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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PteroDark-1.0.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

PteroDark-1.0.0-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page