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.

Source Distributions

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

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_caasclient-1.0.2b1-py2.py3-none-any.whl (10.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file python_caasclient-1.0.2b1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for python_caasclient-1.0.2b1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 01900b6aeff780be96947f15d9f8490acb300c17173f29da292a664c3fc9a000
MD5 b141e9d9c65e3e218e23be6fbaac25c7
BLAKE2b-256 446f1ac748e2393803bf6d00d6dd06ef193d775ba8ab0e45e42856ce78dbc6ae

See more details on using hashes here.

Supported by

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