Skip to main content

PyPI version

ganglion-biosensing

Modern Python 3.7+ library for interfacing with the OpenBCI Ganglion biosensing board over BTLE.

The origins of this library come from my personal disagreement with some of the design and implementation choices made by the developers of the official pyOpenBCI library. Some of the code in this repository has been obtained and/or adapted from the official pyOpenBCI code (following the MIT License).

It should be noted that this library does not aim to be a full replacement for the official library, as it is completely focused on the Ganglion board and not on the Cyton. It should rather be looked at as an alternative which aims to target a more modern and efficient implementation from the ground up.

Installation

Simply do:

pip install ganglion-biosensing

Alternatively, install from the Github repository:

pip install git+https://github.com/molguin92/ganglion-biosensing.git

Usage

Usage is pretty straightforward - simply declare a Ganglion within a with-block for automatic connection and cleanup:

from ganglion_biosensing.board.ganglion import GanglionBoard

if __name__ == '__main__':
    with GanglionBoard(mac='FF:FF:FF:FF:FF:FF') as board:
        board.start_streaming()
        for i in range(500):
            print(board.samples.get(block=True))

The code is thread safe by design - samples are collected in an asynchronous manner and deposited in the board.samples queue.

For more details see the examples/ directory and the code itself.

License

Copyright 2019 - Manuel Olguín Muñoz.

Licensed under an MIT license, see LICENSE for details.

Release files for ganglion-biosensing 0.1.7

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

Source distribution (sdist)

Source distribution for ganglion-biosensing 0.1.7
File Size Uploaded
ganglion-biosensing-0.1.7.tar.gz 10.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ganglion-biosensing 0.1.7
File Interpreter ABI Platform
ganglion_biosensing-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 23.9 kB

Release files / ganglion-biosensing-0.1.7.tar.gz

Download URL ganglion-biosensing-0.1.7.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e60b55c41b33efc4d958619f57b870d2e080992cb6aeaf81bdbe465b1db268f9
BLAKE2b-256 checksum
How to use checksums
b27689974f238b8790c0998fa3689e2dd2c71870ae635a67f9c97382ccde2f2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

Release files / ganglion_biosensing-0.1.7-py3-none-any.whl

Download URL ganglion_biosensing-0.1.7-py3-none-any.whl
Size 13.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4596029a46d069e54e0d66c927d03dc5fbe1c3a4385198cefec3ea4d7fc7daec
BLAKE2b-256 checksum
How to use checksums
29d1a295e554b6e7bd88fbec29bac9ec25215ea519fc52a77e84c751e2a96f95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.0.1

2 release files

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