Pre-release
This release is a pre-release and may not be stable for production use.
# 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
```
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.0a4.tar.gz
(41.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file 0-orchestrator-1.1.0a4.tar.gz.
File metadata
- Download URL: 0-orchestrator-1.1.0a4.tar.gz
- Upload date:
- Size: 41.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36e8fd4b8ccd29d4f144134a5624b835749ab6d15fc85e6db5c46a7082b5303f
|
|
| MD5 |
6fffc6294082ee573c5a73c0087dd02b
|
|
| BLAKE2b-256 |
f7c289c3dd8686fd4e69871e11f69f87971dd090b769450c39a6d0f002a0fcb9
|
File details
Details for the file 0_orchestrator-1.1.0a4-py3-none-any.whl.
File metadata
- Download URL: 0_orchestrator-1.1.0a4-py3-none-any.whl
- Upload date:
- Size: 112.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3a74112dd8a2a0622c77b276ad59d483f62b6bdfce8697f1d6e0b2524860bfe
|
|
| MD5 |
72267cdadac5c628136605b72458c7ee
|
|
| BLAKE2b-256 |
aa2da4193ef2473ec3b370e1f09beb57f161a24f7ca0fe96258f33759dda33b6
|