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-1.1.0a2.tar.gz
(13.3 kB
view details)
File details
Details for the file g8core-1.1.0a2.tar.gz
.
File metadata
- Download URL: g8core-1.1.0a2.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b717db2108eddcb966e80e02ae072ec32c99a03135279bb5d0d4f443007a060 |
|
MD5 | ed1f848514d3061abd293f29d6582480 |
|
BLAKE2b-256 | 8929c7214ab8eb0858e87a36e3e7981aa0ee43d7a31fcc596b8b9c7bda9286b4 |