Motivus client library
Project description
Motivus framework
This package contains:
- A CLI utility to manage:
- Algorithm compilation
- Version registry uploads
- A Client library to use Motivus cluster nodes
Installation
$ pip install motivus
CLI
Compilation
Docker required
TODO: add compilation process description
$ motivus build
Upload new version
Uploads packaged algorithm version contents to Motivus marketplace
$ motivus push
Client
Basic task execution example
Set your application token as an environment value as follows:
APPLICATION_TOKEN=MWBatxipDHG4daX3hemGO4nXZEgAvOTbBPyWDj36AsWqbOJc=
Execute some tasks
from motivus.client import Client
conn = await Client.connect()
task_def = {"run_type": "wasm",
"wasm_path": "./function.wasm",
"loader_path": "./loader.js",
"processing_base_time": 30,
"flops": 45.0,
"flop": 1.0,
"arguments": [1, 3]
}
task_id = conn.call_async(task_def)
task = conn.select_task(task_id)
result = await task
Getting help
You can contact us anytime using our contact form.
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
motivus-1.2.1.tar.gz
(18.4 kB
view hashes)
Built Distribution
motivus-1.2.1-py3-none-any.whl
(18.9 kB
view hashes)