BC Edu SDK
Python bindings for BrainCo educational armbands and gloves.
Installation
python -m pip install bc-edu-sdk
Python 3.8 or later is required.
Data Subscription
Use callbacks for continuous data and SensorProfile to select streams and sample rates:
import asyncio
from bc_edu_sdk import main_mod as libedu
def on_flex_data(data) -> None:
if data:
print(data[-1])
async def main() -> None:
device = libedu.EduDevice("/dev/tty.usbserial-0001", 115200)
parser = libedu.MessageParser("glove", libedu.MsgType.Edu)
profile = libedu.SensorProfile(
flex_rate=libedu.SamplingRate.SAMPLING_RATE_50,
)
libedu.set_flex_data_callback(on_flex_data)
try:
await device.start_stream_with_profile(parser, profile)
await asyncio.Event().wait()
finally:
await device.stop_stream()
libedu.set_flex_data_callback(None)
asyncio.run(main())
Use the callback that matches the configured data type:
| Stream | Callback |
|---|---|
| Flex | set_flex_data_callback |
| EMG | set_emg_data_callback |
| Raw IMU | set_imu_data_callback |
| Calibrated IMU | set_imu_calibration_data_callback |
| Raw magnetometer | set_mag_data_callback |
| Calibrated magnetometer | set_mag_calibration_data_callback |
The source repository contains complete console examples, GUIs, sample-rate tables, configuration lifecycle details, and release notes.
Support
When reporting a connection or API issue, include the package version, Python version, operating system, device model, serial port name, and firmware version.
Metadata
Release files for bc_edu_sdk 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| bc_edu_sdk-0.6.0-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details |
| bc_edu_sdk-0.6.0-cp310-abi3-manylinux_2_34_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.34+ x86-64 | Details |
| bc_edu_sdk-0.6.0-cp310-abi3-manylinux_2_34_aarch64.whl | CPython 3.10 | abi3 | Linux glibc 2.34+ ARM64 | Details |
| bc_edu_sdk-0.6.0-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details |
Total release size: 3.8 MB
Release files / bc_edu_sdk-0.6.0-cp310-abi3-win_amd64.whl
| Download URL | bc_edu_sdk-0.6.0-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 972.9 kB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
0cc0018f2ddf9411f43d0fabbea344fe5a98cdf9b2b8e82d3115661cba8c7efd
|
|
BLAKE2b-256 checksum How to use checksums |
8ac833e2beaf46c5163b9c797cd7ca75dd9e5cb1b114ed1de290df2ebdc18b62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / bc_edu_sdk-0.6.0-cp310-abi3-manylinux_2_34_x86_64.whl
| Download URL | bc_edu_sdk-0.6.0-cp310-abi3-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 965.6 kB |
| Tags | CPython 3.10 Linux glibc 2.34+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
73bfcff0fd4e13d6a0e6db2faaf5c7b9408fff97c63e306b104020c68244a303
|
|
BLAKE2b-256 checksum How to use checksums |
f0392a7b3c374e0343567a2e6e1ff39aae42e3dd9df8a1a4a03e83999d12319f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / bc_edu_sdk-0.6.0-cp310-abi3-manylinux_2_34_aarch64.whl
| Download URL | bc_edu_sdk-0.6.0-cp310-abi3-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 944.2 kB |
| Tags | CPython 3.10 Linux glibc 2.34+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
75c3408ffc76c70ae9d1136d596cfd19bb35423eea48a3655c1b40c3b9c3b6dd
|
|
BLAKE2b-256 checksum How to use checksums |
4f1792d9231e5c034076acc94d359deca220743826e61f69237b9e46f77feaa3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / bc_edu_sdk-0.6.0-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | bc_edu_sdk-0.6.0-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 912.4 kB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ce821796ae8fce75a266de9e3fca8bab5ab7bbf054b1b3e74fc816be5575d5a1
|
|
BLAKE2b-256 checksum How to use checksums |
af5a0b6fee51704e1c347d24f7c9f7d2a374ba0ea4a4adf8878e00dd197adfb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|