gaitkit (Python)
Python package for gait event detection from motion-capture data.
Install
Current status: PyPI release available (latest stable on PyPI).
Install from local source:
python -m pip install -e ./python
python -m pip install -e "./python[all]" # optional extras
Once published:
pip install gaitkit
Optional extras:
pip install "gaitkit[all]" # onnx + deep + viz
Quick Start
import gaitkit
trial = gaitkit.load_example("healthy")
result = gaitkit.detect(trial, method="bike")
print(result.summary())
# Optional: combine C3D markers with an external angle file
result2 = gaitkit.detect("trial_07.c3d", method="bike", angles="res_angles_t.mat")
DeepEvent weights are downloaded automatically on first DeepEvent use and
cached in ~/.cache/gaitkit/.
Proprietary JSON I/O (MyoGait-like)
The compatibility API accepts a proprietary JSON payload with
angles.frames and can export back a MyoGait-compatible events JSON.
import gaitkit
out = gaitkit.detect_events_structured("bike", "myogait_output_no_events.json", fps=100.0)
paths = gaitkit.export_detection(out, "outputs/trial_07", formats=("json", "myogait"))
print(paths)
Input fields recognized per frame:
frame_idxhip_L,knee_L,ankle_Lhip_R,knee_R,ankle_Rpelvis_tilt,trunk_angle- optional
landmark_positions
MyoGait-compatible output file (*_myogait_events.json) contains:
events.methodevents.fpsevents.left_hs,events.right_hs,events.left_to,events.right_toas arrays of{frame, time, confidence}.
Project
- Repository: https://github.com/IDMDataHub/gaitkit
- Issue tracker: https://github.com/IDMDataHub/gaitkit/issues
- Reproducibility: https://github.com/IDMDataHub/gaitkit/blob/master/REPRODUCIBILITY.md
Development testing
python -m pip install -e ./python
python -m unittest -v
Build distributions
python -m pip install build
cd python
python -m build
Metadata
Release files for gaitkit 1.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gaitkit-1.5.0.tar.gz | 11.9 MB | Without provenance | Details for gaitkit-1.5.0.tar.gz |
Release files / gaitkit-1.5.0.tar.gz
| Download URL | gaitkit-1.5.0.tar.gz |
|---|---|
| Size | 11.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de1f0c258152c5eac2e3d0382fb57e321c69091ee7923ce0849ff24d9640d861
|
|
BLAKE2b-256 checksum How to use checksums |
18245068083977d03b6f4bce1d9d97488081fb33fa3a986254c28942c5ef4435
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for gaitkit 1.5.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.