Skip to main content

Python client for CAAS

Project description

Python client for CAAS

To be filled: Brief Introduction

Features

  • HTTP interface using requests
  • Python native quering for CAAS API objects

Installation

Using pip:

pip install python-caasclient

A virtualenvwrapper is recommended:

virtualenv python-caasclient
pip install python-caasclient

Manual Installation:

git clone https://github.com/rogeryu27/python-caasclient.git
cd python-caasclient
python setup.py install

Usage

Query for all ready containers [in a custom namespace]:

from python_caasclient import client

container_list = client(<caas url>).containers.list()

Create a self-defined image:

import os

from python_caasclient import client

image = client(<caas url>).image.create_by_dockerfile(os.open('path/to/dockerfile','w+'))

Requirements

  • Python 2.7
  • requests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page