Skip to main content

brasa

MicroPython developer tools. Flash, deploy, watch, monitor.

Install

pip install brasa

Commands

brasa dev            # deploy, watch for changes, stream serial
brasa deploy         # compile & push src/ to device
brasa flash          # download firmware + flash device
brasa serial         # read-only serial monitor
brasa repl           # interactive REPL
brasa diff           # diff local src/ vs device files
brasa detect         # show connected device port
brasa exec "expr"    # run expression on device
brasa restart        # reboot device

All commands auto-detect the serial port. Override with --port /dev/cu.xxx.

Configuration

Create a brasa.toml in your project root (or add [tool.brasa] to pyproject.toml):

[firmware]
board = "ESP8266"
variant = "GENERIC-FLASH_2M_ROMFS"
version = "1.27.0"
date = "20251209"

[deploy]
src = "src"
env_file = ".env"
boot_files = ["boot.py", "main.py"]
romfs = true
mpy_compile = true

[serial]
baud_rate = 115200

[port]
patterns = ["/dev/cu.usbserial*", "/dev/cu.wchusbserial*", "/dev/cu.SLAB_USBtoUART*"]

Commands that don't need config (detect, serial, repl, restart, exec) work without it. Commands that do (flash, deploy, dev, diff) will error if no config is found.

All fields have defaults — a minimal config works:

[firmware]
version = "1.27.0"
date = "20251209"

Workflow

brasa flash          # flash firmware (first time or update)
brasa dev            # deploy + watch + serial monitor (daily development)
brasa diff           # check what's different on device

Why

Every MicroPython project re-invents the same Makefile: detect the serial port, lock it, flash firmware, deploy files, watch for changes, read serial output. Brasa replaces that with a single CLI that works across projects.

Requirements

  • Python 3.12+
  • macOS or Linux

Metadata

Release files for brasa 0.3.1

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

Source distribution (sdist)

Source distribution for brasa 0.3.1
File Size Uploaded
brasa-0.3.1.tar.gz 11.8 kB Details

Built distribution (wheel)

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

Total release size: 31.0 kB

Release files / brasa-0.3.1.tar.gz

Download URL brasa-0.3.1.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3b75c3667404df758ca74ad19d32ab6d403f322717d3a8e1295f513811b7cef7
BLAKE2b-256 checksum
How to use checksums
302a551bda82a0e3319f69e92a81c45c1b507bd5738b6d2e9306c0be9de8c527
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 Apr 4, 2026.

Transparency log

Release files / brasa-0.3.1-py3-none-any.whl

Download URL brasa-0.3.1-py3-none-any.whl
Size 19.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58ebd816bcd91c116857c93859728612c109d38189fbedd82917da740a911167
BLAKE2b-256 checksum
How to use checksums
3e6e723bb6d97fddc7563d3c0cfbc5a0023ce541fb37625336db269b78754ff2
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 Apr 4, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.1.0

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