fpv-tools
Command-line tools for Betaflight flight controllers and their blackbox logs:
fpv cliruns commands in the flight controller's CLI, e.g. to back up and restore its configurationfpv mspsends any MSP message and prints the reply, decoded to named fields where the layout is knownfpv bbpulls blackbox logs off the onboard flash and analyses them: statistics, events, spectra, step response, CSV export
fpv cli 'diff all' > config.txt # back up
fpv cli < config.txt # restore (the export ends with `save`)
fpv msp MSP_RC --every 0.05 --changes # poll, print only changes
fpv bb pull -O logs/ # copy the onboard flash, named like Betaflight's app does
fpv bb info logs/ # firmware, craft, flights, events
fpv bb stats LOG -s vbat -s amps --when 'thr > 5'
fpv bb spectrum LOG -s gyro_raw.roll --vs-throttle 10
fpv bb export LOG -s thr -s gyro.roll -o flight.csv
The flight controller is left as found: after commands that change something it reboots to drop the changes,
unless --save stores them or --no-reboot keeps them until power-off. Anything that cannot be undone, such as
erasing the flash, asks first.
Some log signals need settings the log does not record, such as the battery alarm settings. These come from a
dump all export (--config), the flight controller (--config-from-fc) or --set KEY=VALUE; there are no
built-in defaults. fpv bb --help lists the signals and the --when condition syntax.
Install
Needs Python 3.12 or newer.
uv tool install fpv-tools # or: pipx install fpv-tools
uv tool install git+https://github.com/Garbaz/fpv-tools # the latest, unreleased
Supports Betaflight 4.5, 2025.12 and 2026.6. Developed with a BETAFPV G473 flight controller on Betaflight 2026.6.
Development
Needs uv. The firmware tables in src/fpv_tools/firmware/tables/ and the MSP codes
are generated from a clone of Betaflight, which also checks the
firmware statements fpv-tools reproduces (scripts/firmware_anchors.py).
uv run pytest # offline tests
BETAFLIGHT_SOURCE=path/to/betaflight uv run pytest # also check the tables against the firmware
FPV_TEST_PORT=/dev/ttyACM0 uv run pytest -m hardware # read-only checks on a disarmed FC (it cannot arm until rebooted)
uv run scripts/gen_firmware_tables.py path/to/betaflight
uv run scripts/gen_msp_codes.py path/to/betaflight
To release, bump the version, move the notes under [Unreleased] in CHANGELOG.md to it, and push
a matching tag; the release workflow checks them and publishes the release on PyPI and GitHub:
uv version --bump minor # or patch, major
git commit -am "Release $(uv version --short)"
git tag "v$(uv version --short)" && git push origin main "v$(uv version --short)"
Licensed GPL-3.0-or-later, like Betaflight, whose log writer and source the decoder and tables follow.
Metadata
Release files for fpv-tools 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fpv_tools-0.1.0.tar.gz | 80.7 kB | Without provenance | Details for fpv_tools-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fpv_tools-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for fpv_tools-0.1.0-py3-none-any.whl |
Total release size: 175.9 kB
Release files / fpv_tools-0.1.0.tar.gz
| Download URL | fpv_tools-0.1.0.tar.gz |
|---|---|
| Size | 80.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5cbaf74fad1453fb85fdee2a82997446e2c53b28462cf67f95a5a97000eac6f6
|
|
BLAKE2b-256 checksum How to use checksums |
1cd13f77ee4ac60f8048b4a4e07f0fe5815c5830c2997a1130d2d8e6b97d09a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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}
|
Release files / fpv_tools-0.1.0-py3-none-any.whl
| Download URL | fpv_tools-0.1.0-py3-none-any.whl |
|---|---|
| Size | 95.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb546fcf174a276d82fbbb844b93e8c9dfc70fb472d8a5772996ba16cbb93bd8
|
|
BLAKE2b-256 checksum How to use checksums |
d79e0981e682bfe3cc9f53f449da04e064886d274214a8f38891234668b372b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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}
|
Security for fpv-tools 0.1.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.