Skip to main content

Motivus client library

Project description

Motivus Client Library

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


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.0.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

motivus-1.0.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file motivus-1.0.0.tar.gz.

File metadata

  • Download URL: motivus-1.0.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for motivus-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ae5406870a3affc82fdbe5f32e2870b36c7aefac533aa742ed31dc900db94f32
MD5 b37e0cb1c3ada2b4b80fb8a2368a036b
BLAKE2b-256 37eacb51b3990fcd5299fc7fe552d9c10027a901dbc8e3f2efdd059c9ddf8d13

See more details on using hashes here.

File details

Details for the file motivus-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: motivus-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for motivus-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b96acb8383fc58d3343e8d3cd53f0e0b58b592e36d02284ec2fa0c2831b7052a
MD5 74a08cc0e48bac0078534eeda3c8b02d
BLAKE2b-256 37d51d8269e1658b9b2ae9e5c3f8ca63c242180ea7f6006bea6afd07718ec28a

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