Skip to main content

BrainAccess Python API

Python API for BrainAccess headsets (HALO, MINI, MIDI, MAXI and EXG8). The package bundles the native BrainAccess Core library; no separate installation is required.

Installation

pip install brainaccess

Requires Python 3.8 or newer, including the free-threaded builds (3.14t and later). Wheels are available for:

  • Linux x86_64 and aarch64 (glibc 2.28 or newer: RHEL/Alma/Rocky 8+, Debian 10+, Ubuntu 18.10+, Raspberry Pi OS 10+, 64-bit),
  • macOS 11 or newer (Apple silicon and Intel),
  • Windows 10/11 x64.

A Bluetooth Low Energy adapter is required (on Linux the BlueZ service must be running).

Quick start

from brainaccess import EEGManager
from brainaccess.utils import EEG

eeg = EEG()
with EEGManager() as mgr:
    # cap: 0-based electrode index -> channel name
    eeg.setup(mgr, device_name="BA HALO 001", cap={0: "Fp1", 1: "Fp2", 2: "O1", 3: "O2"})
    eeg.start_acquisition()
    # ... record ...
    eeg.stop_acquisition()
    raw = eeg.get_mne()   # MNE Raw, electrode channels in volts
eeg.close()

For fine-grained control (channel configuration, callbacks, impedance mode) use brainaccess.core and brainaccess.EEGManager directly.

What's new in 4.0

4.0.0 contains breaking changes compared with 3.6.1; see the release notes in the documentation.

Metadata

Release files for brainaccess 4.0.0

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

Built distributions (wheels)

Table of built distributions (wheels) for brainaccess 4.0.0
File Actions
brainaccess-4.0.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for brainaccess-4.0.0-py3-none-win_amd64.whl
brainaccess-4.0.0-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for brainaccess-4.0.0-py3-none-manylinux_2_28_x86_64.whl
brainaccess-4.0.0-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for brainaccess-4.0.0-py3-none-manylinux_2_28_aarch64.whl
brainaccess-4.0.0-py3-none-macosx_11_0_x86_64.whl Python 3 none macOS 11.0+ x86-64 Details for brainaccess-4.0.0-py3-none-macosx_11_0_x86_64.whl
brainaccess-4.0.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for brainaccess-4.0.0-py3-none-macosx_11_0_arm64.whl

Total release size: 6.7 MB

Release files / brainaccess-4.0.0-py3-none-win_amd64.whl

Download URL brainaccess-4.0.0-py3-none-win_amd64.whl
Size 315.9 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
bf0d2afebc5f71ee58093fe9119eef2aca2d9c1ade5761583aeaecdbac53deb7
BLAKE2b-256 checksum
How to use checksums
be3a627e1b68cbd86c4f0a3c782bb2c257494699cd1038ff8c652443ae0894d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.11

Release files / brainaccess-4.0.0-py3-none-manylinux_2_28_x86_64.whl

Download URL brainaccess-4.0.0-py3-none-manylinux_2_28_x86_64.whl
Size 2.6 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
82746a75ef744172091a9972d51266c6c84a91878bd778cf299e6a4f6843e2f0
BLAKE2b-256 checksum
How to use checksums
8e3afe3dd2fd7963648e51921ba6ea5755f91533918d75fa97790dc285d207c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.11

Release files / brainaccess-4.0.0-py3-none-manylinux_2_28_aarch64.whl

Download URL brainaccess-4.0.0-py3-none-manylinux_2_28_aarch64.whl
Size 2.4 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
42b5c0185037edf6838c65f48eab452b76f289df7f5560762c8792dc7e657612
BLAKE2b-256 checksum
How to use checksums
932725cd90f3e5ee1cabd95bc86b56cd5d96eaa57353f98e399b9341cf22fa75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.11

Release files / brainaccess-4.0.0-py3-none-macosx_11_0_x86_64.whl

Download URL brainaccess-4.0.0-py3-none-macosx_11_0_x86_64.whl
Size 661.1 kB
Tags Python 3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
bb5060ac6fab8b09143dc9e7ec40c9f60bbf21699bbea777619a24abda0c8515
BLAKE2b-256 checksum
How to use checksums
c9702735c30e2c255f8ecde90ff4872e24e816574aa1abccb92fb5f0e41140ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.11

Release files / brainaccess-4.0.0-py3-none-macosx_11_0_arm64.whl

Download URL brainaccess-4.0.0-py3-none-macosx_11_0_arm64.whl
Size 661.1 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4454ff88e1ffaea6ed99d99733e63461108a6a00969c4018a31061707f5070dd
BLAKE2b-256 checksum
How to use checksums
9285664908602e0697a38f0ff8bb20b571e013308942db3bb31d0d7d46f7eafc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.11

Security for brainaccess 4.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.

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