Skip to main content

Babon kinematics-as-a-service client. Video in, movement data out.

Project description

babon

Kinematics-as-a-service client. Video in, movement data out.

pip install babon
from babon import Babon

Babon("bk_...").analyze("trial.mp4").save("out.zip")

That's it.

A bit more

from babon import Babon

bb = Babon("bk_...")

# get the clinical_report.json dict directly
report = bb.analyze("trial.mp4").data
print(report["gait_parameters"]["gait_velocity_m_s"])

# batch
bb.analyze(["a.mp4", "b.mp4", "c.mp4"]).save("./results/")

# tag with your own identifier
bb.analyze("trial.mp4", label="cohort-3-day-7").save("out.zip")

What's in the bundle

clinical_report.json (gait params, GRF, symmetry), 14 per-joint angle CSVs (ISB convention), raw rotation matrices, 3D joint positions, bodymodel.npz, grf_waveform.json, manifest.json with SHA-256 per file.

Errors

The client raises typed exceptions:

  • BabonAuthError — bad key, wrong environment, DPA not accepted.
  • BabonQuotaExceeded — monthly limit, concurrent limit, or rate-limited.
  • BabonInvalidVideo — file is not a recognised container.
  • BabonInvalidLabel — label looks like a real name (ADR-0002).
  • BabonRunFailed — pipeline failed.
  • BabonTimeoutwait() exceeded its timeout.

All carry .code (the API error code) and .request_id (the support handle).

What we are and are not

  • Measurement only. Output is kinematics; clinical interpretation is yours.
  • EU-cloud (Scaleway fr-par). Videos never leave the EU.
  • Don't put real patient names in label or in your filenames. We reject name-shaped labels server-side.

Contact

daan@babon.eu — onboarding, quota, bugs.

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

babon-0.1.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

babon-0.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: babon-0.1.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for babon-0.1.0.tar.gz
Algorithm Hash digest
SHA256 748c9493b45692376b5979aa34d8bf5689f9db4c5f881450eaf726a7cefa06f8
MD5 e5b5fbe308c0926d5a3e01485a3c7722
BLAKE2b-256 f52c58b2af3b7a7f8fefbcf8ae11b43f564f68de6481a04098a690c5ccfa8978

See more details on using hashes here.

File details

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

File metadata

  • Download URL: babon-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for babon-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa00f4c4481f84060ac8e84dbabc9b37efc26fee6ec57e43db38c5564b1b306c
MD5 e500083a21f07dcfd1e2c2a99df8e51e
BLAKE2b-256 3426766ad5c04c3f2d3af1aab294dd383de9f55f2932ce504c939e288585880e

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