G8OS cores client
Project description
# G8core
G8Core is the python client used to talk to [G8OS core](https://github.com/g8os/core0)
## install
```bash
pip install g8core
```
## How to use:
```python
import g8core
cl = g8core.Client(host='ip of docker container running core0')
#validate that core0 is reachable
print(cl.ping())
#then u can do stuff like
print(
cl.system('ps -eF').get()
)
print(
cl.system('ip a').get()
)
#client exposes more tools for disk, bridges, and container mgmt
print(
cl.disk.list()
)
```
G8Core is the python client used to talk to [G8OS core](https://github.com/g8os/core0)
## install
```bash
pip install g8core
```
## How to use:
```python
import g8core
cl = g8core.Client(host='ip of docker container running core0')
#validate that core0 is reachable
print(cl.ping())
#then u can do stuff like
print(
cl.system('ps -eF').get()
)
print(
cl.system('ip a').get()
)
#client exposes more tools for disk, bridges, and container mgmt
print(
cl.disk.list()
)
```
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
g8core-0.11.1.tar.gz
(7.9 kB
view hashes)