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
```
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
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 Distribution
0-orchestrator-1.1.0a7.tar.gz
(55.8 kB
view details)
Built Distribution
File details
Details for the file 0-orchestrator-1.1.0a7.tar.gz
.
File metadata
- Download URL: 0-orchestrator-1.1.0a7.tar.gz
- Upload date:
- Size: 55.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cfc80c8589f2f622db351c2aaf49136d3125318304463e9a127ad68902b9262 |
|
MD5 | 4177117b59fce270892605c15e8715e4 |
|
BLAKE2b-256 | f792d10e965ef66b41fdad63a44899a7cb6084eaff81eb35de275ee48f10b9d5 |
Provenance
File details
Details for the file 0_orchestrator-1.1.0a7-py3-none-any.whl
.
File metadata
- Download URL: 0_orchestrator-1.1.0a7-py3-none-any.whl
- Upload date:
- Size: 148.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b09acf91c50222fc64664095684c5945a8a3f9ed275739d713d4b01c8ae43746 |
|
MD5 | 8df9a30a84ffa8da2cdcd0f90087291d |
|
BLAKE2b-256 | ebae8c0ce308eaed5419cc1e5b097e635c2f0d19fe94a71310e325413a58671a |