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:
- Python 3.10+
- A MyoSapiens API key, available at dev.myolab.ai
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"]["qpos_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.1.tar.gz
(17.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
myosdk-0.0.1-py3-none-any.whl
(11.7 kB
view details)
File details
Details for the file myosdk-0.0.1.tar.gz.
File metadata
- Download URL: myosdk-0.0.1.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07dbfe9d1ec426b04bb3e6d127df7875047bf56651af53af2ff74c0518afeed9
|
|
| MD5 |
f8c3c0784b0f4f7e071335c44af90c2a
|
|
| BLAKE2b-256 |
b1a3c7aac20384e7dc3bce61491d5ccf17c246a5e2ef889d980222c42aea2af6
|
File details
Details for the file myosdk-0.0.1-py3-none-any.whl.
File metadata
- Download URL: myosdk-0.0.1-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0b683aa30251a29c7529ce8b24a233f035b282042770aaaab765edbdfa77692
|
|
| MD5 |
2a54687378149c44bf816dc7eae247de
|
|
| BLAKE2b-256 |
3afa49101865cd2172c33dbb45285423ea697efe7aef791c1969423258468d95
|