Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mobbo_serial-0.1.0.tar.gz (35.7 kB view details)

Uploaded Source

Built Distribution

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

mobbo_serial-0.1.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

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

Hashes for mobbo_serial-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6a41b7e9daea20eb5250c32d8a836412874480e68c26fec06736d07d39244fb3
MD5 ecfa19e9286d62bc326acdb3d70f126a
BLAKE2b-256 f9735d9d76270fe9f2bef1313f1d2467307911d91a8c48b570f5e30b264b26f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for mobbo_serial-0.1.0.tar.gz:

Publisher: publish.yml on SujithChristopher/mobbo-serial

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for mobbo_serial-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d553a4054ad2490beb90196b178457baae3515b7cfbeacc2159edf716d8b5681
MD5 81b4d6c878de03bbde63211cbc04a4ea
BLAKE2b-256 dd27034af41950132e06ca32fca374eb7adfc8c45006b50b5f08245af7b68995

See more details on using hashes here.

Provenance

The following attestation bundles were made for mobbo_serial-0.1.0-py3-none-any.whl:

Publisher: publish.yml on SujithChristopher/mobbo-serial

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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