Python SDK for the BodyLoop API for seamless ecosystem integration
Project description
BodyLoop SDK for Python
Python SDK for the BodyLoop API for seamless ecosystem integration
The URL of the source repository https://github.com/bodyloop/bodyloop-sdk-python has suffix python to enable adding SDKs for other lanuages such as JavaScript/TypeScript, C/C++, Rust, etc.
The distribution name (install) of the Python Package name is bodyloop-sdk and is available in the global Package Index PyPi at https://pypi.org/project/bodyloop-sdk. It omits the suffix since PyPi already tells us that we are in the Python ecosystem.
Examples how to get the package are:
pip install bodyloop-sdk
poetry add bodyloop-sdk
uv add bodyloop-sdk
pipx install bodyloop-sdk
uv tool install bodyloop-sdk
The top-level import of the package is the Python module bodyloop.
Usage:
import bodyloop
from bodyloop import Viatar, Proband
from bodyloop import ScanUnit
Posture Analysis
Run a dashboard via:
uv run python docs/notebooks/05-posture-analysis/01-three-views.py
Contribute
Local workflow
git clone git@github.com:BodyLoop/bodyloop-sdk-python.git
cd bodyloop-sdk-python
uv sync
uv run pytest
uv build
The release / publish workflow is defined as:
- Push to the
mainbranch - Create a new tag
vYYYY.MM.DD.rwhereYYYY.MM.DDis the current date andris the sequential release number we increment over all releases, independent of the date and push the tag as well. - Create a new GitHub release based on that tag, baptize the release identical to the tag and add release notes.
- Triggered by the release creation the GitHub Action
publish.ymlwill build the package and publish it to PyPi.
Update the API client
The API generator https://pypi.org/project/openapi-python-client/ is used.
./generate_api_client.sh <ip_or_hostname_of_my_bodyloop_instance>
Use the experiments to get your feet wet:
touch .env
echo "BODYLOOP_BASE_URL='https://bodyloop-control-pc'" >> .env
echo "BODYLOOP_API_TOKEN='your_api_token_here'" >> .env
uv run experiments/a_create_client.py
uv run experiments/b_load_probands.py
Release Procedure
- Make sure that you are on the
mainbranch and that all changes are committed and pushed. - Create a new tag
vYYYY.MM.DD.rwhereYYYY.MM.DDis the current date andris the sequential release number we increment over all releases, independent of the date and push the tag as well.
git checkout main
git pull origin main
git tag | tail 1
git tag v2026.04.13.2
git push --tags
License
See LICENSE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
File details
Details for the file bodyloop_sdk-2026.4.13.2.tar.gz.
File metadata
- Download URL: bodyloop_sdk-2026.4.13.2.tar.gz
- Upload date:
- Size: 85.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a4c5ac83fa4c3db49764f4e87d0f7e071fa5bbbb676c9d85c2474a9dd0cc756
|
|
| MD5 |
f7a867051860206444d3abe74893e1ce
|
|
| BLAKE2b-256 |
436d3bf8c0737f234d039dbd64521b062271842df89eadac41a3f730a81f2fa5
|
Provenance
The following attestation bundles were made for bodyloop_sdk-2026.4.13.2.tar.gz:
Publisher:
release.yml on BodyLoop/bodyloop-sdk-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bodyloop_sdk-2026.4.13.2.tar.gz -
Subject digest:
2a4c5ac83fa4c3db49764f4e87d0f7e071fa5bbbb676c9d85c2474a9dd0cc756 - Sigstore transparency entry: 1283175207
- Sigstore integration time:
-
Permalink:
BodyLoop/bodyloop-sdk-python@8af34308e543709bc5651e7a228073bd924da0eb -
Branch / Tag:
refs/tags/v2026.04.13.2 - Owner: https://github.com/BodyLoop
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8af34308e543709bc5651e7a228073bd924da0eb -
Trigger Event:
release
-
Statement type:
File details
Details for the file bodyloop_sdk-2026.4.13.2-py3-none-any.whl.
File metadata
- Download URL: bodyloop_sdk-2026.4.13.2-py3-none-any.whl
- Upload date:
- Size: 308.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55a462d9905082c2e5732c487c33a886034457451fcac8d2abaf3d36bd156ee3
|
|
| MD5 |
5cc0943a5f3cd0e79db162d453b33caf
|
|
| BLAKE2b-256 |
31ff41e2021ee0ec84e8041837ee55a4840df3c7da942c7c853140004e36769e
|
Provenance
The following attestation bundles were made for bodyloop_sdk-2026.4.13.2-py3-none-any.whl:
Publisher:
release.yml on BodyLoop/bodyloop-sdk-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bodyloop_sdk-2026.4.13.2-py3-none-any.whl -
Subject digest:
55a462d9905082c2e5732c487c33a886034457451fcac8d2abaf3d36bd156ee3 - Sigstore transparency entry: 1283175224
- Sigstore integration time:
-
Permalink:
BodyLoop/bodyloop-sdk-python@8af34308e543709bc5651e7a228073bd924da0eb -
Branch / Tag:
refs/tags/v2026.04.13.2 - Owner: https://github.com/BodyLoop
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8af34308e543709bc5651e7a228073bd924da0eb -
Trigger Event:
release
-
Statement type: