Flash images onto target disks, locally or over PXE
Project description
bty - flash images onto target disks, locally or over PXE
Image-flash provisioning toolkit for bare-metal and virtual targets. Writes pre-built ("cooked") system images onto target disks - locally from a USB live stick or remotely over PXE - and configures the deployed system on first boot via cloud-init or CIJOE workflows.
bty is one Python package: the bty module, distributed on PyPI as
bty-lab, with three
console-script entry points:
bty: main CLI (image inspection, target discovery, flashing, provisioning).bty-tui: terminal UI (requires thetuiextra). With--server URLit doubles as a remote-flash client against a runningbty-web.bty-web: HTTP server with browser UI (requires thewebextra).
Plus a sibling appliance-image builder under bty-media/ that produces
the bootable USB live image and the server appliance image.
Install
pipx install bty-lab # CLI, zero third-party Python deps
pipx install "bty-lab[tui]" # adds the bty-tui terminal UI
pipx install "bty-lab[web]" # adds the bty-web HTTP server
pipx install "bty-lab[all]" # everything
The CLI flow (bty list disks, bty inspect image, bty flash --dry-run)
needs only Python 3.11+ and stdlib; full flashing (bty flash --yes)
relies on system binaries (dd, qemu-img, zstd, lsblk, etc.) the
operator's distribution is expected to provide.
Status
Pre-1.0 but actively shipping. Wheels and appliance images publish
to PyPI + GitHub Releases on
every tag, and the server + client + PXE-chain end-to-end flow runs
in CI on every push. The CLI surface (bty list, bty inspect,
bty flash) and the bty-web HTTP/iPXE/PAM-auth surfaces are stable
enough to use in homelab / CI fleets. Wire formats and CLI flags
may still shift between minor versions until 1.0; the schema_version
field on --json output and the Machine wire type are the things
to watch. See PLAN.md for the milestone-by-milestone
roadmap.
Planning and design
Development
uv is the project's dependency manager. Install it via pipx if you
don't already have it:
pipx install uv
Then sync the dev environment:
uv sync --all-extras --group dev
Run the test suite, linter, and type-checker:
uv run pytest
uv run ruff check
uv run mypy src
Documentation
The docs tooling installs as a separate pipx app:
pipx install ./docs/tooling
Then, from inside docs/:
bty-docs-serve # live-rebuild dev server on :8000
bty-docs-build-html # one-shot HTML build
bty-docs-build-pdf # one-shot PDF build (requires LaTeX)
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bty_lab-0.2.11.tar.gz.
File metadata
- Download URL: bty_lab-0.2.11.tar.gz
- Upload date:
- Size: 2.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2de9d26a3ffe8d65598f89883cb9dd70eb6c2cff6c92e127ec6943e19d31693
|
|
| MD5 |
abcecd16d5204f112a825e91dda76c7c
|
|
| BLAKE2b-256 |
64de2b804d1d9052de2305ec15924e78950a9337489fe145f2b9b386d93ebf4e
|
Provenance
The following attestation bundles were made for bty_lab-0.2.11.tar.gz:
Publisher:
release.yml on safl/bty
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bty_lab-0.2.11.tar.gz -
Subject digest:
c2de9d26a3ffe8d65598f89883cb9dd70eb6c2cff6c92e127ec6943e19d31693 - Sigstore transparency entry: 1462232678
- Sigstore integration time:
-
Permalink:
safl/bty@6c5c89eadff427960426023c655087018b5e68f2 -
Branch / Tag:
refs/tags/v0.2.11 - Owner: https://github.com/safl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@6c5c89eadff427960426023c655087018b5e68f2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file bty_lab-0.2.11-py3-none-any.whl.
File metadata
- Download URL: bty_lab-0.2.11-py3-none-any.whl
- Upload date:
- Size: 634.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4514b87c69ebd52006be58b7ec5dbac97aceef037fdd524c2e12275bef67bbdc
|
|
| MD5 |
736453e5b5b151d66abc7fa5cbf39525
|
|
| BLAKE2b-256 |
8cf966d18db350922ec8f307ed6013372dd0df30bb4324e2f1fd9104196c2ddd
|
Provenance
The following attestation bundles were made for bty_lab-0.2.11-py3-none-any.whl:
Publisher:
release.yml on safl/bty
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bty_lab-0.2.11-py3-none-any.whl -
Subject digest:
4514b87c69ebd52006be58b7ec5dbac97aceef037fdd524c2e12275bef67bbdc - Sigstore transparency entry: 1462232696
- Sigstore integration time:
-
Permalink:
safl/bty@6c5c89eadff427960426023c655087018b5e68f2 -
Branch / Tag:
refs/tags/v0.2.11 - Owner: https://github.com/safl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@6c5c89eadff427960426023c655087018b5e68f2 -
Trigger Event:
push
-
Statement type: