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(
    tracker_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.1.0.tar.gz (26.4 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.1.0-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for myosdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b88edcce011d3ac975ebaa38c6bf2fef9365814ddb2a4b4d7e25a351d6b6005d
MD5 100819743ef28bcaa3c440bc75ac8b10
BLAKE2b-256 d0df549dc9e54c0c3c0f3da5ce569ee33ea69b8c5fb1590e324c362330e6b93b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for myosdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a249e63d9762d7ddae17522092edb968f3e73f856c93ba3e48d1f57ab966717a
MD5 d2d72b3f63a7d4badc9b0d2368bf235b
BLAKE2b-256 71b6b96c86eb32aec7e81981c2396f698219ef1526dc3754ee297c9de1cf84fd

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