Skip to main content

A client for Loko orchestrator services

Project description

  Loko - Client


Loko Client interacts with loko-gateway and loko-orchestrator APIs.

Docs | Tutorial | LoKo AI

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

loko-client-0.0.1.dev2.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

loko_client-0.0.1.dev2-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

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

Hashes for loko-client-0.0.1.dev2.tar.gz
Algorithm Hash digest
SHA256 ae244e4f38aa764112907347f737b59b3f00b512195cddc430076dfc5a3f8d62
MD5 17edcda64afa22f69f4a363dced30590
BLAKE2b-256 c5ed0ba150424db09783a9e18f9bdeab9431ea55ffffed3b90840ac38001a203

See more details on using hashes here.

File details

Details for the file loko_client-0.0.1.dev2-py3-none-any.whl.

File metadata

File hashes

Hashes for loko_client-0.0.1.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 137d5c312abf120d66dd8a86835144c830fd0be3e6585d119cb109992924339f
MD5 fa051841d42b6531f50ae9ec94098ada
BLAKE2b-256 df22819d56cb2e35dba6ae7809c9e89e27f80908e63e5ae6ec1e0ef5aadaa303

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page