Serial COP (center of pressure) library for two-force-board setups - connect, tare, and record sessions to CSV, no GUI required.
Project description
mobbo
GUI-free Python library for the two-force-board COP (center of pressure) serial device. Connect over a COM port, get live per-board and combined COP samples, tare, and record sessions to CSV.
Install
pip install mobbo-serial
# or: uv add mobbo-serial
sample_gui.py (a PySide6 demo app built on this library) needs the optional
gui extra:
pip install mobbo-serial[gui]
Usage
import mobbo
# optional: relocate where session data is saved (defaults to
# <Documents>/mobbo-data, config lives at ~/.mobbo/config.json)
mobbo.configure(data_dir="D:/lab-data")
board = mobbo.Board(port="COM10", layout="side_by_side")
board.on_sample(lambda s: print(s.combined.cop_x, s.combined.cop_y))
board.connect()
board.tare() # blocks briefly, zeroes current load as baseline
session_dir = board.start_recording("subject1")
# ... let it run ...
csv_path = board.stop_recording()
print(f"saved to {csv_path}")
board.disconnect()
mobbo.list_ports() lists available COM ports.
Development
uv sync --extra gui # --extra gui only needed to run sample_gui.py
uv run pytest -v
Releasing
Publishing to PyPI is automated: bump version in pyproject.toml, commit,
tag it (git tag vX.Y.Z && git push origin vX.Y.Z), then publish a
GitHub Release
for that tag - the publish.yml workflow builds and uploads it via PyPI
Trusted Publishing.
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 mobbo_serial-0.1.0.tar.gz.
File metadata
- Download URL: mobbo_serial-0.1.0.tar.gz
- Upload date:
- Size: 35.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a41b7e9daea20eb5250c32d8a836412874480e68c26fec06736d07d39244fb3
|
|
| MD5 |
ecfa19e9286d62bc326acdb3d70f126a
|
|
| BLAKE2b-256 |
f9735d9d76270fe9f2bef1313f1d2467307911d91a8c48b570f5e30b264b26f2
|
Provenance
The following attestation bundles were made for mobbo_serial-0.1.0.tar.gz:
Publisher:
publish.yml on SujithChristopher/mobbo-serial
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mobbo_serial-0.1.0.tar.gz -
Subject digest:
6a41b7e9daea20eb5250c32d8a836412874480e68c26fec06736d07d39244fb3 - Sigstore transparency entry: 2162254472
- Sigstore integration time:
-
Permalink:
SujithChristopher/mobbo-serial@cfb12ce469edefbb280500aa70c858e64b67fd08 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/SujithChristopher
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cfb12ce469edefbb280500aa70c858e64b67fd08 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mobbo_serial-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mobbo_serial-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.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 |
d553a4054ad2490beb90196b178457baae3515b7cfbeacc2159edf716d8b5681
|
|
| MD5 |
81b4d6c878de03bbde63211cbc04a4ea
|
|
| BLAKE2b-256 |
dd27034af41950132e06ca32fca374eb7adfc8c45006b50b5f08245af7b68995
|
Provenance
The following attestation bundles were made for mobbo_serial-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on SujithChristopher/mobbo-serial
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mobbo_serial-0.1.0-py3-none-any.whl -
Subject digest:
d553a4054ad2490beb90196b178457baae3515b7cfbeacc2159edf716d8b5681 - Sigstore transparency entry: 2162254648
- Sigstore integration time:
-
Permalink:
SujithChristopher/mobbo-serial@cfb12ce469edefbb280500aa70c858e64b67fd08 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/SujithChristopher
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cfb12ce469edefbb280500aa70c858e64b67fd08 -
Trigger Event:
release
-
Statement type: