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.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file python_caasclient-1.0.2b1-py2.py3-none-any.whl
.
File metadata
- Download URL: python_caasclient-1.0.2b1-py2.py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01900b6aeff780be96947f15d9f8490acb300c17173f29da292a664c3fc9a000 |
|
MD5 | b141e9d9c65e3e218e23be6fbaac25c7 |
|
BLAKE2b-256 | 446f1ac748e2393803bf6d00d6dd06ef193d775ba8ab0e45e42856ce78dbc6ae |