Skip to main content

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

  1. Create an account on the CloudCIX Platform

  2. 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

  3. Ensure that you have both Python and pip installed

    • As of right now, the cloudcix module is available at different versions for Python2 and Python3

    • We recommend you use Python3 and the latest version of the cloudcix module

    • Python

    • pip

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

cloudcix-5.0.8.tar.gz (26.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cloudcix-5.0.8-py2.py3-none-any.whl (35.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file cloudcix-5.0.8.tar.gz.

File metadata

  • Download URL: cloudcix-5.0.8.tar.gz
  • Upload date:
  • Size: 26.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for cloudcix-5.0.8.tar.gz
Algorithm Hash digest
SHA256 cdd1cd8c568775e0c8d3a89afc3679b11d7cd13c05996bfb01a97239adbee8e5
MD5 c619fcc96d8f5f5ce7b9d58573a03149
BLAKE2b-256 39927a4bd5b95d83b5d99abb9c7eec4dd1da75e631fd34add7aa3e958ee855ce

See more details on using hashes here.

File details

Details for the file cloudcix-5.0.8-py2.py3-none-any.whl.

File metadata

  • Download URL: cloudcix-5.0.8-py2.py3-none-any.whl
  • Upload date:
  • Size: 35.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for cloudcix-5.0.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0cb4103bc9aaa4fefe70a23018793688efdd4c24548c1e8fe722d2f87e04d426
MD5 540356e9d10d0abcac0f4a7c0d89c6fe
BLAKE2b-256 7b1d3c1b95afaa8efa2fd7f8bd618cd77cbe07ea8426968c138f336f7a67e5f2

See more details on using hashes here.

Supported by

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