Skip to main content

Model Health Python SDK

Python SDK for the Model Health biomechanical analysis API.

Installation

pip install modelhealth

Requires Python 3.11 or later.

Quick Start

import time
from modelhealth import (
    ModelHealthClient,
    ActivityStatus,
    ActivityStatusUploading,
    AnalysisStatus,
)

client = ModelHealthClient("your_api_key")

# List sessions created via the mobile app
sessions = client.session_list()
session = sessions[0]

# Get activities for a subject
subject = next(client.subjects.list())
activities = client.activities.list(subject=subject).all()
activity = activities[0]

# Poll until processing is complete
status = client.activity_status(activity)
while isinstance(status, ActivityStatusUploading) or status == ActivityStatus.processing:
    time.sleep(10)
    status = client.activity_status(activity)

# Run analysis
task = client.start_analysis("gait", activity, session)
analysis_status = client.analysis_status(task)
while analysis_status == AnalysisStatus.processing:
    time.sleep(10)
    analysis_status = client.analysis_status(task)

# Download results
import json
results = client.analysis_data_for_activity(activity, ["metrics"])
metrics = json.loads(results[0].data)

Documentation

Full documentation: sdk.modelhealth.io

License

Apache 2.0

Metadata

Release files for modelhealth 0.11.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for modelhealth 0.11.2
File Interpreter ABI Platform Actions
modelhealth-0.11.2-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for modelhealth-0.11.2-cp311-abi3-win_amd64.whl
modelhealth-0.11.2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 abi3 Linux glibc 2.17+ x86-64 Details for modelhealth-0.11.2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
modelhealth-0.11.2-cp311-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl CPython 3.11 abi3 macOS 11.0+ ARM64, macOS 10.12+ universal2 (ARM64, x86-64), macOS 10.12+ x86-64 Details for modelhealth-0.11.2-cp311-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl

Total release size: 8.8 MB

Release files / modelhealth-0.11.2-cp311-abi3-win_amd64.whl

Download URL modelhealth-0.11.2-cp311-abi3-win_amd64.whl
Size 2.3 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
8f4e7c5e0698db04c2d7354dad04e0a0cc4fc634dd3f921c5ae6d7a4ba14d27b
BLAKE2b-256 checksum
How to use checksums
090aca3984b0e547dc1fde811d74c8be85675777f3102bbc8df57fe4c4bee109
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

Release files / modelhealth-0.11.2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL modelhealth-0.11.2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.3 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
2ae3c8e88ea628fd37c3c0d0ca212013459b6346614bb2312311b51f8578ecd4
BLAKE2b-256 checksum
How to use checksums
1ed1653e6739205d42b9cd2999d34ec36216bc40819a52a4b8580757da50d222
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

Release files / modelhealth-0.11.2-cp311-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl

Download URL modelhealth-0.11.2-cp311-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Size 4.2 MB
Tags CPython 3.11 abi3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c92d96088708a138aec3dd2c6803c14060de3807e7b8c8f81a4b73ec37342602
BLAKE2b-256 checksum
How to use checksums
cfeacc022934ffe4c1f7b6eaadf809aa2cf9a971d3cfba6a96b4ff2109310620
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

Security for modelhealth 0.11.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 3 files in this release have been uploaded with provenance metadata.

Select from 3 files

Attestation for modelhealth-0.11.2-cp311-abi3-win_amd64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page