Skip to main content

Octopus Sensing PLUX

PLUX devices (biosignalsplux, BITalino, ...) support for Octopus Sensing.

Installation

pip install octopus-sensing-plux

It installs Octopus Sensing as well.

Usage

from octopus_sensing.device_coordinator import DeviceCoordinator
from octopus_sensing_plux import PluxStreaming

my_plux = PluxStreaming("BTH00:07:80:4D:2E:76",
                        sampling_rate=1000,
                        active_ports=[1, 2, 3],
                        name="plux",
                        output_path="./output")

device_coordinator = DeviceCoordinator()
device_coordinator.add_devices([my_plux])

The device should be paired via Bluetooth before running the code. The address is the device's MAC address prefixed with BTH (Bluetooth) or BLE (Bluetooth Low Energy).

Data is recorded in {output_path}/{name} as CSV files with the following columns: nSeq, port_1, ..., port_n, timestamp, trigger.

See examples/plux_example.py for a complete example:

python examples/plux_example.py BTH00:07:80:4D:2E:76 --ports 1 2 --trials 2 --duration 5

Supported platforms

PLUX API is not available on PyPI. Its binaries from PLUX python-samples are bundled in octopus_sensing_plux/plux_api (Apache-2.0, see octopus_sensing_plux/plux_api/LICENSE) for:

Platform Python
Linux x86_64 3.11, 3.12
Linux ARM32 (e.g. Raspberry Pi) 3.11
MacOS Apple Silicon 3.11, 3.12

On other platforms, download the PLUX API for your platform and Python version and pass its directory to PluxStreaming as plux_api_path.

On MacOS, if you see The communication port could not be initialized, follow the "macOS Setup" section of the PLUX python-samples README for the files in octopus_sensing_plux/plux_api/M1_3xx.

Development

poetry install
poetry run pytest tests
poetry run mypy octopus_sensing_plux

License

GPL-3.0-or-later. The bundled PLUX API binaries are licensed under Apache-2.0.

Metadata

Release files for octopus-sensing-plux 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for octopus-sensing-plux 1.0.0
File Size Uploaded Provenance Actions
octopus_sensing_plux-1.0.0.tar.gz 621.2 kB Without provenance Details for octopus_sensing_plux-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for octopus-sensing-plux 1.0.0
File Interpreter ABI Platform Actions
octopus_sensing_plux-1.0.0-py3-none-any.whl Python 3 none any Details for octopus_sensing_plux-1.0.0-py3-none-any.whl

Total release size: 1.2 MB

Release files / octopus_sensing_plux-1.0.0.tar.gz

Download URL octopus_sensing_plux-1.0.0.tar.gz
Size 621.2 kB
Tags Source
SHA-256 checksum
How to use checksums
acda1b8313032e3e1829681d03cb21a06c84f5783d1d784eca398857553a8ea8
BLAKE2b-256 checksum
How to use checksums
c2f1f33822d60a6a30c0c49df70cb6093571eb9287ea052c91b3ea29aff9a87e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.3 Linux/6.8.0-48-generic

Release files / octopus_sensing_plux-1.0.0-py3-none-any.whl

Download URL octopus_sensing_plux-1.0.0-py3-none-any.whl
Size 624.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e2dfc8c0460239fd4a956c31ba92486b97bfc7b3eaa6f94e1640019909bfa0b0
BLAKE2b-256 checksum
How to use checksums
a62e7fe3945164c8518e518f889c706723a1206ffb5124d9488ce7118a0fa69f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.3 Linux/6.8.0-48-generic

Security for octopus-sensing-plux 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page