A client for Loko orchestrator services
Project description
Loko - Client
Loko Client interacts with loko-gateway and loko-orchestrator APIs.
Installation
(.venv) $ pip install loko-client
FS Client example
FS Client interacts with loko-orchestrator APIs. You can use it to manage LoKo data.
from loko_client.business.fs_client import FSClient
GATEWAY = 'http://localhost:9999/routes/'
fsclient = FSClient(gateway=GATEWAY)
### list directory content
print(fsclient.ls('data/data/datasets'))
### read file
content = fsclient.read('data/data/datasets/titanic.csv', mode='r')
print(content)
Projects Client example
Projects Client interacts with loko-orchestrator APIs and you can use it to manage LoKo projects.
from loko_client.business.projects_client import ProjectsClient
GATEWAY = 'http://localhost:9999/routes/'
pclient = ProjectsClient(gateway=GATEWAY)
### list projects
print(pclient.all_projects())
### list tasks
print(pclient.running_tasks())
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
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 loko-client-0.0.1.dev2.tar.gz.
File metadata
- Download URL: loko-client-0.0.1.dev2.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae244e4f38aa764112907347f737b59b3f00b512195cddc430076dfc5a3f8d62
|
|
| MD5 |
17edcda64afa22f69f4a363dced30590
|
|
| BLAKE2b-256 |
c5ed0ba150424db09783a9e18f9bdeab9431ea55ffffed3b90840ac38001a203
|
File details
Details for the file loko_client-0.0.1.dev2-py3-none-any.whl.
File metadata
- Download URL: loko_client-0.0.1.dev2-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
137d5c312abf120d66dd8a86835144c830fd0be3e6585d119cb109992924339f
|
|
| MD5 |
fa051841d42b6531f50ae9ec94098ada
|
|
| BLAKE2b-256 |
df22819d56cb2e35dba6ae7809c9e89e27f80908e63e5ae6ec1e0ef5aadaa303
|