Skip to main content

Official Hetzner Cloud python library

Project description

https://travis-ci.com/hetznercloud/hcloud-python.svg?branch=master https://readthedocs.org/projects/hcloud-python/badge/?version=latest https://img.shields.io/pypi/pyversions/hcloud.svg

Official Hetzner Cloud python library

The library’s documentation is available at ReadTheDocs, the public API documentation is available at https://docs.hetzner.cloud.

Usage example

After the documentation has been created, click on Usage section

Or open docs/usage.rst

You can find some more examples under examples/.

Development

Setup Dev Environment

  1. mkvirtualenv hcloud-python

  2. pip install -e . or pip install -e .[docs] to be able to build docs

Run tests

  • tox .

  • You can specify environment e.g tox -e py36

  • You can test the code style with tox -e flake8

Create Documentation

Run make docs. This will also open a documentation in a tab in your default browser.

Style Guide

  • Type Hints: If the type hint line is too long use inline hinting. Maximum inline type hint line should be 150 chars.

License

The MIT License (MIT). Please see License File for more information.

History

1.7.1 (2020-06-55)

  • Feature: Add requests 2.23 support

1.7.0 (2020-06-05)

  • Feature: Add support for the optional ‘networks’ parameter on server creation.

  • Feature: Add python 3.9 support

  • Feature: Add subnet type cloud

1.6.3 (2020-01-09)

  • Feature: Add ‘created’ property to SSH Key domain

  • Fix: Remove ISODatetime Descriptor because it leads to wrong dates

1.6.2 (2019-10-15)

  • Fix: future dependency requirement was too strict

1.6.1 (2019-10-01)

  • Fix: python-dateutil dependency requirement was too strict

1.6.0 (2019-09-17)

  • Feature: Add missing get_by_name on FloatingIPsClient

1.5.0 (2019-09-16)

  • Fix: ServersClient.create_image fails when specifying the labels

  • Feature: Add support for name on Floating IPs

1.4.1 (2019-08-19)

  • Fix: Documentation for NetworkRoute domain was missing

  • Fix: requests dependency requirement was to strict

1.4.0 (2019-07-29)

  • Feature: Add mac_address to Server PrivateNet domain

  • Feature: Add python 3.8 support

1.3.0 (2019-07-10)

  • Feature: Add status filter for servers, images and volumes

  • Feature: Add ‘created’ property to Floating IP domain

  • Feature: Add ‘Networks’ support

1.2.1 (2019-03-13)

  • Fix: BoundVolume.server server property now casted to the ‘BoundServer’.

1.2.0 (2019-03-06)

  • Feature: Add get_by_fingerprint-method for ssh keys

  • Fix: Create Floating IP with location raises an error because no action was given.

1.1.0 (2019-02-27)

  • Feature: Add STATUS-constants for server and volume status

1.0.1 (2019-02-22)

Fix: Ignore unknown fields in API response instead of raising an error

1.0.0 (2019-02-21)

0.1.0 (2018-12-20)

  • First release on GitHub.

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

hcloud-1.7.1.tar.gz (65.6 kB view hashes)

Uploaded Source

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