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 details)
File details
Details for the file g8core-0.11.1.tar.gz
.
File metadata
- Download URL: g8core-0.11.1.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fad77efe92e6040e3c71614720c2cff69e3016524c4c679767dfa7f03834c18 |
|
MD5 | 01db7a7e0a12fdd02670d7bcbf9c34c5 |
|
BLAKE2b-256 | d2926ef9e39290a6e30b05b741a2873874ada2fb70e72f66fdc7beddad1b9b93 |