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.0a3.tar.gz
(37.5 kB
view details)
Built Distribution
File details
Details for the file 0-orchestrator-1.1.0a3.tar.gz
.
File metadata
- Download URL: 0-orchestrator-1.1.0a3.tar.gz
- Upload date:
- Size: 37.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9248bc9b55f645b6045f6bb4846ae0df0f7193e39633295d9967ba68665d177 |
|
MD5 | 7bd2016aa1dc6f1d28b88657673025ef |
|
BLAKE2b-256 | 141993882065e97fe8d30b246ad47365b4a18c63846b1c8b5f294c4abcedba49 |
Provenance
File details
Details for the file 0_orchestrator-1.1.0a3-py3-none-any.whl
.
File metadata
- Download URL: 0_orchestrator-1.1.0a3-py3-none-any.whl
- Upload date:
- Size: 104.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 237e32c255663a74cfc9b4f20cf69949ba10cfa52e5d3099194ad2ad35201b4c |
|
MD5 | 4396d8dd5810266b284c7ed028eeb152 |
|
BLAKE2b-256 | 688bbbed7b15b68637bb66fa28047b082fb5383f6ddb61ef8a723b3e46e5c4dd |