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
```
Metadata
Release files for 0-orchestrator 1.1.0-alpha-7-1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| 0-orchestrator-1.1.0-alpha-7-1.tar.gz | 55.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 0_orchestrator-1.1.0a7.post1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 204.8 kB
Release files / 0-orchestrator-1.1.0-alpha-7-1.tar.gz
| Download URL | 0-orchestrator-1.1.0-alpha-7-1.tar.gz |
|---|---|
| Size | 55.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7789ed84a06a08f072ed92dfba91e46c2aab6616df80afdbdb570c017ea4852f
|
|
BLAKE2b-256 checksum How to use checksums |
d25b92b1be5d9ff54b2409b4f77d85e90f2e3bf6488d040f6f3269de0ed3aa0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / 0_orchestrator-1.1.0a7.post1-py3-none-any.whl
| Download URL | 0_orchestrator-1.1.0a7.post1-py3-none-any.whl |
|---|---|
| Size | 148.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
72f076dec0cbe098ebc085fa083b30e2671a310d8186620f1c52e73c220ab81f
|
|
BLAKE2b-256 checksum How to use checksums |
0dce6e7c14ebc167f31a8bb9d0b48116359794c902a60c29e0c8d197b13e8bdd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |