Ml-Board Client Library
Project description
python-mlboardclient
Python lib for interacting ml-board component.
Installation
From PyPi
pip install python-mlboardclient
From github (fresh master branch)
pip install 'git+https://github.com/kuberlab/python-mlboardclient.git'
Usage
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
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
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file python_mlboardclient-1.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: python_mlboardclient-1.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 54.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.5rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37fae8210a63e61db6548316e5db45baed0aaa0ffe86ac94ea0589d0e6a296ca |
|
MD5 | f55195aea6a86e0dbf9e6f0bf8e4e0c8 |
|
BLAKE2b-256 | bfa226bb37e626ae72254fc74c83ba34b0e5de30bc0cd6da913c9801e91fe2fa |