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.

Documentation

See docs/USAGE.md for detailed library usage, callbacks, tare, recording, CSV output, layouts, and error handling.

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.1.tar.gz (46.9 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.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file mobbo_serial-0.1.1.tar.gz.

File metadata

  • Download URL: mobbo_serial-0.1.1.tar.gz
  • Upload date:
  • Size: 46.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for mobbo_serial-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0cb1c2f48abfbfa850986f0d05d2eeea1fc12ad3df42a40a74e690bf9cdbef0a
MD5 dbe71b7457fd1d995eeb1ca92bf9d9be
BLAKE2b-256 ef87ed8ff31408e3e45101780ba34ab80b97363f12443704d12c06dafb776bae

See more details on using hashes here.

Provenance

The following attestation bundles were made for mobbo_serial-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: mobbo_serial-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for mobbo_serial-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 da2a74a0b77d8e78c3a8bf00d65d3a767d6a5fa994e293d4278ed1621b7cbdf5
MD5 b2567ddc183eb2f833eb3d9ca0b1c541
BLAKE2b-256 e5fd5a634ad1739e5ecbf03c1a4cab6ff28f9c742b6b2f22ddb3fda905b8b40c

See more details on using hashes here.

Provenance

The following attestation bundles were made for mobbo_serial-0.1.1-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