nybulah
Raw-track ("nibbler") imaging and writing for Commodore 1541 and 1571 drives, and WD177x-level imaging and writing for the 1581, over the serial IEC bus through OpenCBM and a ZoomFloppy or another xum1541 adapter. No parallel cable is needed. It preserves copy-protected and non-standard disks and writes them back.
Status: early development; hardware testing is ongoing.
Support
| drive | read |
write |
needs |
|---|---|---|---|
| 1541 | D64, G64 from raw GCR captures | D64, raw images | 8 KB RAM expansion at $8000-$9FFF |
| 1571 | D64, D71, G64, G71 (streamed with firmware v12) | D64, D71, raw images | 8 KB RAM expansion at $6000-$7FFF for writes and RAM passes |
| 1581 | D81 | D81 | nothing (any DOS ROM) |
--archive DIR keeps every raw capture (GCR, sync lengths, byte times, or
1581 track data) so images can be re-derived
(disk.md). Raw images are any of the image formats below
that hold GCR tracks.
Image formats (info, convert, map, flux): NIB, NB2, NBZ, G64, G71,
P64, SCP, KryoFlux, D64, D71, D81, IMD (formats.md).
Install
Requires Docker and a ZoomFloppy or another xum1541. Stock firmware runs the s1/s2 transports; the fork at anarkiwi/OpenCBM adds the faster transports and stall recovery (flashing).
docker build --target runtime -t nybulah .
alias nybulah='docker run --rm --stop-timeout 34 --device=/dev/bus/usb -v "$PWD:/data" nybulah'
Usage
nybulah bus reset "wait 8 9 10" # reset; wait until every drive has settled
nybulah hwcheck --devs 8 10 --proto s3 # identify drives, probe RAM, bench transports
nybulah read --dev 10 --transport s3 disk.d64 # 1541: read with error bytes
nybulah read --dev 8 --transport s4 disk.d71 # 1571: both sides, streamed
nybulah write --dev 8 --transport s4 disk.d71 # format, write, verify every track
nybulah read --dev 10 --archive caps/ disk.g64 # raw: best revolution of every track
nybulah write --dev 8 --align index disk.g64 # raw: fit, write, verify; starts at the index
nybulah convert caps/ disk.g64 # raw image from a read --archive directory
nybulah read --dev 9 --transport s4 disk.d81 # 1581: D81 with error bytes
nybulah pattern verify --dev 8 --halftrack 36 # test track against its truth
nybulah info disk.g64 # per-track kind, cycle, errors
nybulah convert disk.nbz disk.g64 # to .g64, .g71, .d64 or .p64
nybulah map disk.nib -o disk.html # disk map: .png, .apng, .svg/.html
nybulah flux disk.scp -o disk.html # flux view: .png, .apng, .html
nybulah survey CORPUS --out survey/ # corpus statistics and thresholds
nybulah <command> --help lists the options.
Documentation
- features.md: transports, capture, analysis and format features
- hardware.md: bus sessions, hardware check, probes, firmware, transfer rates
- protocol.md: X, burst X, SRQ and streaming wire protocols
- disk.md: drive routines, capture passes, D64/D71 and raw image reading and writing, head location
- analysis.md: GCR, revolution detection, faults, disk map, flux view, MFM
- formats.md: image formats, flux decoding, licences
- scenarios.md: track scenarios in preserved images
- comparison.md: other tools, historic copiers, gaps
- vice.md: drive code on VICE's true drive emulation (binary monitor bench)
Development
docker build --target test -t nybulah:test .
docker run --rm -v "$PWD:/app" -w /app nybulah:test python -m pytest -n auto
Drive code is ca65 assembly in drive/, run in tests on a compiled drive
simulator (nybulah.simfast; NYBULAH_SIM=py65 selects the reference model)
and on VICE's drive emulation (--target test-vice, pytest -m vice;
vice.md).
Licence
Apache-2.0. nybulah contains no nibtools or OpenCBM code; the modified
firmware is in its own GPL-2.0 repository. The test-vice image builds VICE
(GPL-2.0) from its release tarball and runs it as a separate program.
Metadata
Release files for nybulah 0.1.1
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 |
|---|---|---|---|---|
| nybulah-0.1.1.tar.gz | 444.8 kB | With provenance | Details for nybulah-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nybulah-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for nybulah-0.1.1-py3-none-any.whl |
Total release size: 791.9 kB
Release files / nybulah-0.1.1.tar.gz
| Download URL | nybulah-0.1.1.tar.gz |
|---|---|
| Size | 444.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3976acebc78bcdf6a5393a8f54932a0b6ce703e22b43b8ead918f9bd8dfef5b
|
|
BLAKE2b-256 checksum How to use checksums |
aee93e7737f7beb9514173f96fe9ae99ae0bf65c569aa4dcb32b4c4fe0c6b879
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 15, 2026.
Transparency logRelease files / nybulah-0.1.1-py3-none-any.whl
| Download URL | nybulah-0.1.1-py3-none-any.whl |
|---|---|
| Size | 347.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f648735879ed0ccf3cef286ad3955ef1dde173d45521305cf360d7122b76de31
|
|
BLAKE2b-256 checksum How to use checksums |
92ba4635604a9873a61a8e43f726dce6957668921651709119142e0602ac57c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 15, 2026.
Transparency logSecurity for nybulah 0.1.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for nybulah-0.1.1.tar.gz
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 Oct 15, 2026.
Transparency logA 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.