Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

bpod-core

A modern Python interface for Bpod Finite State Machines.

bpod-core is a Python library for running behavioral experiments on Bpod hardware. You describe the trial logic as a finite state machine; bpod-core validates it, runs it on a connected Bpod device, and returns every recorded event with precise timestamps as an analysis-ready data frame.

Bpod Finite State Machines are an open-source platform by Sanworks for controlling behavioral experiments: a microcontroller-based finite state machine that runs the trial logic in real time and talks to sensors, valves, and other peripherals with deterministic millisecond-scale timing. Running the state machine on dedicated microcontroller hardware, rather than a general-purpose computer, keeps time-critical trial execution isolated from operating-system scheduling jitter. This makes Bpod particularly well-suited to closed-loop experiments, where state transitions must be triggered by sensor readings within a tight, predictable latency.

bpod-core grew out of the need for a modern, well-tested way to work with Bpod devices from Python, and is designed to fit naturally into everyday research workflows. It is maintained by the software development team at the International Brain Laboratory.

Goals

  • Interface to Bpod Devices: Provides an interface for interacting with Bpod devices.
  • State Machine Management: Offers capabilities to define, validate, and run state machines.
  • Standalone or Library Use: Can function independently or be integrated as a library within other projects.
  • Performance-Oriented: Designed to be lean and fast.
  • Quality Assurance: Typed, tested, and documented.

Non-Goals

  • No GUI: Does not include a graphical user interface.
  • Limited High-Level Functionality: Does not provide features such as data management, configuration, or calibration.
  • No Specific Module Support: Does not implement support for specific Bpod modules.

Installation

bpod-core is available on PyPI:

pip install bpod-core

See the installation guide for requirements and recommended setup.

Feedback and Contributing

Report bugs and request features on the issue tracker. To contribute, see the contributing guide.


CI Checked with mypy Coverage Status License GitHub Release PyPI DOI

Metadata

Release files for bpod-core 0.1.0a16

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

Source distribution (sdist)

Source distribution for bpod-core 0.1.0a16
File Size Uploaded Provenance Actions
bpod_core-0.1.0a16.tar.gz 329.9 kB With provenance Details for bpod_core-0.1.0a16.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bpod-core 0.1.0a16
File Interpreter ABI Platform Actions
bpod_core-0.1.0a16-py3-none-any.whl Python 3 none any Details for bpod_core-0.1.0a16-py3-none-any.whl

Total release size: 451.2 kB

Release files / bpod_core-0.1.0a16.tar.gz

Download URL bpod_core-0.1.0a16.tar.gz
Size 329.9 kB
Tags Source
SHA-256 checksum
How to use checksums
869ab54fec1a9f03d325e459799e91f21585922d5409dfad26be721122ad41ac
BLAKE2b-256 checksum
How to use checksums
148873d109e015ac7b8ec4294d82f782b4b7221416be642f489c4d36fd1a17cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / bpod_core-0.1.0a16-py3-none-any.whl

Download URL bpod_core-0.1.0a16-py3-none-any.whl
Size 121.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
70f7c97234181355642d4513b14741d7b608a9958537e754c2ee0f964bed86dd
BLAKE2b-256 checksum
How to use checksums
ab9e7a96a377668072979320f9399e4f0471cf66a53d5d24484cf7b5e7880c66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Security for bpod-core 0.1.0a16

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bpod_core-0.1.0a16.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

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