Skip to main content

Zero-OS Orchestrator

Project description

# Python Client

O-orchestrator is the Python client used to talk to [Zero-OS 0 Rest API](../README.md)

## Install

```bash
pip install 0-orchestrator
```

## How to use

```python
In [9]: from zeroos.orchestrator import client

In [10]: c = client.Client('http://192.168.193.212:8080')

In [11]: c.api.nodes.ListNodes().json()
Out[11]:
[{'hostname': '', 'id': '2c600cbc2545', 'status': 'running'},
{'hostname': '', 'id': '2c600ccd2ae9', 'status': 'running'},
{'hostname': '', 'id': '0cc47a3b3d6a', 'status': 'running'},
{'hostname': '', 'id': '2c600ccd2ad1', 'status': 'running'},
{'hostname': '', 'id': '2c600cbc23bc', 'status': 'running'}]
```

## To update the client from the RAML file

```shell
go-raml client -l python --ramlfile raml/api.raml --dir pyclient/zeroos/orchestrator/client
```


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

0-orchestrator-1.1.0a0.tar.gz (37.5 kB view details)

Uploaded Source

Built Distribution

0_orchestrator-1.1.0a0-py3-none-any.whl (104.1 kB view details)

Uploaded Python 3

File details

Details for the file 0-orchestrator-1.1.0a0.tar.gz.

File metadata

File hashes

Hashes for 0-orchestrator-1.1.0a0.tar.gz
Algorithm Hash digest
SHA256 bef128cef7e57e648ef6a651379793b1a63df90b4da9ffc995dd688e62ddb6d7
MD5 1f3e0c406a6dedb90f68e9399161af52
BLAKE2b-256 de0a742998c97b906aee0a0d4878d20c5090141fd8110f72d83d52f4c1941f67

See more details on using hashes here.

File details

Details for the file 0_orchestrator-1.1.0a0-py3-none-any.whl.

File metadata

File hashes

Hashes for 0_orchestrator-1.1.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1ba77c79f65e71fe92fe1050fe89b4fe88b9faaa3c16fe324f5da4c7e2d14e9
MD5 a90be403c11034470656a428ab9bbc9e
BLAKE2b-256 e6e2813b1755dccc504d2494e924ca3253a612674379d987be606581fb297289

See more details on using hashes here.

Supported by

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