Registry / devops / bty-lab

bty-lab

JSON →
library0.37.0pypypi✓ verified 81d ago

Flash OS images onto target disks either offline (local disk/ISO) or networked (PXE, HTTP, NFS). Current version 0.37.0, active development with frequent releases.

pip install bty-lab
INSTALL
IMPORT
SIG · BTY-LAB
B
bty-lab
devopspythonv0.37.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PackageNotFoundError
from bty import PackageNotFoundError
from bty import BTY
annotations
from bty import annotations
from bty import BTY

Create a BTY instance and call flash() with an ISO path and a target disk device.

from bty import BTY bty = BTY() # Flash an ISO to a target disk print(bty.flash('path/to/image.iso', '/dev/sdX'))
Debug
Known issues
breakingThe BTY class constructor changed from BTY(config) to BTY() in v0.30. All configuration is now passed to individual methods.
fix
Update code to instantiate BTY() without arguments and provide config per call.
affects: <=0.29.x
gotchaFlashing to a disk requires root privileges; calling flash() without sudo raises PermissionError.
fix
Run your Python script with sudo or ensure the process has raw disk write access.
affects: all
deprecatedThe 'bty.pxe' module is deprecated as of v0.35. PXE functionality is now integrated into the main BTY class.
fix
Use BTY().pxe_setup() instead of importing bty.pxe.
affects: >=0.35
Upgrade
Version history
0.37.0latest on PyPI · released Jun 6, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
bty-lab — pip install bty-lab · libregistry