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
source python-caasclient/bin/activate
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 caasclient import client as caas_client

container_list = caas_client.Client(<caas url>).containers.list()

Create a self-defined image:

import os

from caasclient import client as caas_client

image = caas_client.Client(<caas url>).images.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.

Filename, size & hash SHA256 hash help File type Python version Upload date
caasclient-1.0.2b1-py2.py3-none-any.whl (10.8 kB) Copy SHA256 hash SHA256 Wheel py2.py3

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page