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

caasclient-1.0.2b1-py2.py3-none-any.whl (10.8 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for caasclient-1.0.2b1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1d9acca13bde043ba531f110397fb2f17b13383e88320a9937c024924f6bb3d4
MD5 0a87c25b0cb4ead2de6cc66722e1c541
BLAKE2b-256 2862b3630705933f3f892efc8c5879fa51b22fb70eb8774de79f46eb4e743efd

See more details on using hashes here.

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