Skip to main content

Ml-Board Client Library

Project description

# python-mlboardclient

Python lib for interacting ml-board component.

## Installation

```bash
pip install 'git+https://github.com/kuberlab/python-mlboardclient.git'
```

## Usage

```python
from mlboardclient.api import client

# Default url is http://mlboard-v2.kuberlab:8082/api/v2
# No need to pass any url if instantiate client from ml-project (Jupyter/Task)
ml = client.Client()
apps = ml.apps.list()
[<mlboardclient.api.v2.apps.App object at 0x7f0b554b5f90>]

app = apps[0]
# Get tasks from config
app.tasks
[<Task name=model build=None status=undefined>]

task = app.tasks[0]

# Run & wait task
task.run()
<Task name=model build=4 status=Succeeded>

# Get tasks from API
app.get_tasks()
[<Task name=model build=1 status=Failed>, <Task name=model build=2 status=Failed>,
<Task name=model build=3 status=Failed>, <Task name=model build=4 status=Succeeded>]
```

### Model upload

```python
ml.model_upload('my-model', '1.0.0', '/model/dir')
# If the model uploading is not executing in scope of project task,
# need to specify workspace_name and project_name explicitly:
ml.model_upload(
'my-model',
'1.0.0',
'/model/dir',
workspace_name='demo',
project_name='test-project
)

# Wait until model is being uploaded.
```



Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

python_mlboardclient-1.0.2-py2.py3-none-any.whl (16.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file python_mlboardclient-1.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for python_mlboardclient-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 54aefd0b7606ff4683845c0621428a00670f22e2a8dabd5ab92635e8917903b9
MD5 e902f844b511664e5c5bdf9f37c524a2
BLAKE2b-256 5f86d297cde1681cf68e90d463e33dcb04ee34d6b37d619e16d844b24fd413ef

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