Skip to content

TestCoper/hetzner-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Hetzner Cloud API Python Script

This is a Python script that allows you to manage servers and IP addresses using the Hetzner Cloud API. It provides various functionalities such as retrieving servers and IP addresses, deleting IP addresses, creating IP addresses, assigning IP addresses to servers, and turning on servers.

Prerequisites

  • Python 3.9 or higher
  • hcloud-python library

Installation

  1. Clone the repository:

    git clone https://github.com/TestCoper/hetzner-api.git
  2. Install the required dependencies:

    pip install hcloud

Usage

1- Replace the token value in the script with your Hetzner Cloud API token.

2- Run the script:

python3 script.py

3- Follow the on-screen instructions to interact with the script and perform various actions such as managing servers and IP addresses.

License

This project is licensed under the MIT License.

Acknowledgements

Feel free to contribute to this project by submitting issues or pull requests.