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
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.
Built Distribution
Close
Hashes for python_caasclient-1.0.2b1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01900b6aeff780be96947f15d9f8490acb300c17173f29da292a664c3fc9a000 |
|
MD5 | b141e9d9c65e3e218e23be6fbaac25c7 |
|
BLAKE2-256 | 446f1ac748e2393803bf6d00d6dd06ef193d775ba8ab0e45e42856ce78dbc6ae |