Skip to main content

Python SDK for MyoSapiens API

Project description

MyoSapiens Python SDK (MyoSDK)

A lightweight Python client for the MyoSapiens API.

Installation

pip install myosdk

Quick Start

Prerequisites

Before installing the SDK, ensure you have:

Basic Usage

from myosdk import Client

client = Client(api_key="ak_live_xxx")

# Upload a C3D motion capture file
c3d_asset = client.assets.upload_file(<c3d_path>)

# Upload markerset XML file
markerset_asset = client.assets.upload_file(<markerset_path>)

# Run tracking
job = client.jobs.start_retarget(
    c3d_asset_id=c3d_asset["asset_id"],
    markerset_asset_id=markerset_asset["asset_id"],
)

# Wait for completion
result = client.jobs.wait(job["job_id"])

# Download the resulting joint angles and joint names(.npz)
joint_angle_asset_id = result["output"]["retarget_output_asset_id"]
client.assets.download(joint_angle_asset_id, <output_npy_path>)

Examples and Tutorials

See examples and tutorials at https://github.com/myolab/myosdk_tutorials

SDK Documentation

Full SDK and API documentation is available at docs.myolab.ai.

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

myosdk-0.0.2.tar.gz (25.8 kB view details)

Uploaded Source

Built Distribution

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

myosdk-0.0.2-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file myosdk-0.0.2.tar.gz.

File metadata

  • Download URL: myosdk-0.0.2.tar.gz
  • Upload date:
  • Size: 25.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.6

File hashes

Hashes for myosdk-0.0.2.tar.gz
Algorithm Hash digest
SHA256 da3389036f84f749f944426e88e7d4544263764b5eb9384255d8da1aca5eb0c3
MD5 2c5f34ffb3b3794c3a265bd1df910a8f
BLAKE2b-256 f7720333da8e4d11fe8d88ce8000b4e53c5dff14efc9c6feb2d62d9b9d471d06

See more details on using hashes here.

File details

Details for the file myosdk-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: myosdk-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.6

File hashes

Hashes for myosdk-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 29526bb4694b8a8198a4525f6171fbff731e713f722741d3505acb7b9d281104
MD5 1a955a439a626bcfab720982b105fc4e
BLAKE2b-256 c4ee143056e216c63913f2672a5ba0d831ca850f1efec86f5db6b95e6960a31c

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