Introduction

Overview

The IONOS Cloud SDK for Python provides you with access to the IONOS Cloud Dbaas Postgres API.

Getting Started

An IONOS account is required for access to the Dbaas Postgres API; credentials from your registration are used to authenticate against the IONOS Cloud API.

Installation & Usage

Requirements:

  • Python >= 3.5

pip install

Since this package is hosted on PyPI (https://pypi.org/) you can install it like this

pip install ionoscloud_dbaas_postgres

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/ionos-cloud/sdk-python-dbaas-postgres.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/ionos-cloud/sdk-python-dbaas-postgres.git)

Then import the package:

import ionoscloud_dbaas_postgres

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import ionoscloud_dbaas_postgres

NOTE: The Python SDK does not support Python 2. It only supports Python >= 3.5.

Authentication

The username and password or the authentication token can be manually specified when initializing the SDK client:

configuration = ionoscloud_dbaas_postgres.Configuration(
    username = 'YOUR_USERNAME',
    password = 'YOUR_PASSWORD'
)
client = ionoscloud_dbaas_postgres.ApiClient(configuration)

Environment variables can also be used; the SDK uses the following variables:

  • IONOS_USERNAME - to specify the username used to login

  • IONOS_PASSWORD - to specify the password

  • IONOS_TOKEN - if an authentication token is being used

Warning: Make sure to follow the Information Security Best Practices when using credentials within your code or storing them in a file.

FAQ

  1. How can I open a bug/feature request?

Bugs & feature requests can be open on the repository issues: https://github.com/ionos-cloud/sdk-python-dbaas-postgres/issues/new/choose

  1. Can I contribute to the Python SDK?

Pure SDKs are automatically generated using OpenAPI Generator and don’t support manual changes. If you need changes please open an issue and we’ll try to take care of it.

Last updated