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-magnumclient
pip install puthon-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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

caasclient-1.0.1b1-py2.py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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