Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for python-caasclient, version 1.0.2b1
Filename, size File type Python version Upload date Hashes
Filename, size python_caasclient-1.0.2b1-py2.py3-none-any.whl (10.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes

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