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.dev3.tar.gz (12.9 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.dev3-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file loko-client-0.0.1.dev3.tar.gz.

File metadata

  • Download URL: loko-client-0.0.1.dev3.tar.gz
  • Upload date:
  • Size: 12.9 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.dev3.tar.gz
Algorithm Hash digest
SHA256 294f99835b2f6e0897569940569dd5c6220e179b1c80defd8492cea97268483e
MD5 4e903839da1989bf5f117d8e8efc71a4
BLAKE2b-256 e83f3ef13d8d9b490dcf4d9fbb76f98bce1a0554e19d4e34f6bfb248e037653c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for loko_client-0.0.1.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 307d7189b7fa981a9099c2b8d6eb562c0079e6935a46086e5a9df84d22b412da
MD5 c3bbda7e038986e54b648f0326a8f47c
BLAKE2b-256 16ce17f3ffb16c981a2b02e7f946fe09d69e0a73a1a810eeaeada8d06d152864

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