Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

flashbay

Python SDK for flashbay — remote access to MCU development boards.

Use it in scripts, automation, or as a pytest plugin for hardware-in-the-loop testing.

Install

pip install flashbay

Quick start

from flashbay import Client

client = Client()

with client.session(board="esp32s3") as session:
    session.flash("firmware.bin")
    session.serial.expect("Ready", timeout=10)
    session.serial.send("status\n")
    print(session.serial.read_until("OK", timeout=5))

Or use the Board shorthand:

from flashbay import Board

with Board("esp32-s3", firmware="build/app.bin") as board:
    board.expect("System ready", timeout=5)
    board.send("gpio set 4 1\n")
    board.expect("GPIO4=HIGH", timeout=2)

pytest plugin

The package includes a pytest plugin that registers automatically. Use it with custom fixtures:

import pytest
from flashbay import Board

@pytest.fixture
def board():
    with Board("esp32-s3", firmware="build/app.bin") as b:
        yield b

def test_boot_ok(board):
    assert board.expect("System ready", timeout=5)

Or use the built-in flashbay_board fixture via CLI options:

pytest --flashbay-board esp32s3 --flashbay-firmware build/app.bin tests/hil/

Authentication

Set your API key via environment variable:

export FLASHBAY_API_KEY=key_...

Or pass it directly:

client = Client(api_key="key_...")

Documentation

Metadata

Release files for flashbay 0.1.2

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

Source distribution (sdist)

Source distribution for flashbay 0.1.2
File Size Uploaded
flashbay-0.1.2.tar.gz 9.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flashbay 0.1.2
File Interpreter ABI Platform
flashbay-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 19.7 kB

Release files / flashbay-0.1.2.tar.gz

Download URL flashbay-0.1.2.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1260450e517eafbad47c0f777b54d9b8fdbeb02806fab638b62c8ccd68bcdeda
BLAKE2b-256 checksum
How to use checksums
7fade67c1d0b9801d0353eff807568e026a6043eef451cb941314a157262f346
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 18, 2026.

Transparency log

Release files / flashbay-0.1.2-py3-none-any.whl

Download URL flashbay-0.1.2-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe258d3ab47e944b3caebf0b43f54bbfe98a440fdf25c072b02f2a7630d44dec
BLAKE2b-256 checksum
How to use checksums
dcbe540b8cb2637586febc63757734d64a6d79bd3d2123b1363bb019da6a988d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 18, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

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