Python3 bindings and utils for CloudCIX API.
Project description
cloudcix is a Python client for the CloudCIX REST API for rapidly building secure, scalable CloudCIX applications.
For more information about CloudCIX, see here.
Installation
Prerequisites
Create an account on the CloudCIX Platform
Retrieve your API Key
Under the My Membership tab in the sidebar, click on Member Details
The API Key should be available at the top of the form
Ensure that you have both Python and pip installed
Installing the cloudcix library
The cloudcix library is installed using the pip module.
Depending on your version of Python, you need to install different versions of cloudcix
- Python3
pip3 install -U cloudcix
- Python2
pip install -U 'cloudcix<0.3'
The 0.2 releases are the last to support Python2. If you still use Python2 we recommend you upgrade to Python3 as support will be dropped for these versions in time.
Required settings
In order to run a project, the module requires some settings to exist.
The variables required are as follows:
CLOUDCIX_API_URL = https://legacyapi.api.cloudcix.com/ - The base url of the Python2 API
CLOUDCIX_API_V2_URL = https://api.cloudcix.com/ - The API name is prepended to this url after the https:// for the Python3 API.
CLOUDCIX_API_VERSION = 2 - The version of the api
CLOUDCIX_API_USERNAME - The email of the account that you signed up with
CLOUDCIX_API_PASSWORD - The password associated with your CloudCIX account
CLOUDCIX_API_KEY - The API key associated with your CloudCIX Member (see Prerequisites)
These variables can be declared in a settings file, as follows
# In main python script
import os
os.environ.setdefault('CLOUDCIX_SETTINGS_MODULE', 'my_project.my_settings')
# In my_project/my_settings.py
CLOUDCIX_API_URL = 'https://legacyapi.api.cloudcix.com/'
CLOUDCIX_API_V2_URL = 'https://api.cloudcix.com/'
CLOUDCIX_API_USERNAME = 'EMAIL' # CloudCIX login
CLOUDCIX_API_PASSWORD = 'PASSWORD' # CloudCIX password
CLOUDCIX_API_KEY = 'NUMBER/CHARACTER STRING' # CloudCIX api key
CLOUDCIX_API_VERSION = 2 # CloudCIX version
Examples
See here for examples on how to use this library.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cloudcix-0.14.3.tar.gz
.
File metadata
- Download URL: cloudcix-0.14.3.tar.gz
- Upload date:
- Size: 22.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3f6eedecd2399d5ef31afc10c17cfd42ef9e163f453be580f50a2f6c54d4002 |
|
MD5 | 9c5fca7cf45c497a538376916bc98a47 |
|
BLAKE2b-256 | 88168ce9122fb88df9be4455613d96d59066babf895404acb48904237acb54e3 |
File details
Details for the file cloudcix-0.14.3-py2.py3-none-any.whl
.
File metadata
- Download URL: cloudcix-0.14.3-py2.py3-none-any.whl
- Upload date:
- Size: 30.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0a0cd3eb4df21af218a162daebbf8d69683e9c25d915e061c3d965b8446de85 |
|
MD5 | a73954576c9aea322eec8e93a79af883 |
|
BLAKE2b-256 | 08efc2a7126d77e32e0905cddd6b121c38425829336c6fd1ed6c181e0ceae925 |