Skip to main content

oaknut-hfe

PyPI version CI Python versions License: MIT

HFE (HxC Floppy Emulator) disc-image support for the oaknut family of packages.

An HFE file records each track of a floppy disc as the raw bitstream the drive head delivers. It is the native format of the HxC and Gotek floppy emulators and a common output of preservation capture hardware such as the Greaseweazle. Because it sits below the sector level, an HFE image keeps everything an original disc carries, including the non-standard sector IDs, deliberate CRC errors, deleted-data marks and extra tracks that copy protection relies on.

This package reads HFE v1 and v3 images, decodes their FM and MFM tracks into sectors, and flattens a decoded disc into the logical sector image that the oaknut filesystems read.

Usage

Every disc command that reads an image opens an HFE file as the sector image decoded from it:

disc ls 'Dunjunz_D1S1.hfe:$'
disc export Dunjunz_D1S1.hfe dunjunz/

The disc hfe commands look below the sector level:

disc hfe info Dunjunz_D1S1.hfe                 # header and decoded layout
disc hfe sectors --anomalies Dunjunz_D1S1.hfe  # what protection put there
disc hfe flatten Dunjunz_D1S1.hfe Dunjunz_D1S1.ssd

From Python:

from oaknut.hfe import HFEImage, analyse, decode_image, flatten

disc = decode_image(HFEImage.from_filepath("Dunjunz_D1S1.hfe"))
flat = flatten(disc)  # flat.data is the .ssd image
for finding in analyse(disc, flat.layout):
    if finding.anomalous:
        print(finding.track, finding.side, finding.remarks)

Status

Pre-alpha, read-only.

Installation

uv add oaknut-hfe

License

MIT — see LICENSE.

Metadata

Release files for oaknut-hfe 13.7.0

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

Source distribution (sdist)

Source distribution for oaknut-hfe 13.7.0
File Size Uploaded Provenance Actions
oaknut_hfe-13.7.0.tar.gz 29.6 kB Without provenance Details for oaknut_hfe-13.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for oaknut-hfe 13.7.0
File Interpreter ABI Platform Actions
oaknut_hfe-13.7.0-py3-none-any.whl Python 3 none any Details for oaknut_hfe-13.7.0-py3-none-any.whl

Total release size: 54.9 kB

Release files / oaknut_hfe-13.7.0.tar.gz

Download URL oaknut_hfe-13.7.0.tar.gz
Size 29.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7ccc48e77f0345758a187b2088566317a0ae817366def85b1a45df29fcb9ddc8
BLAKE2b-256 checksum
How to use checksums
08b6d79cb3977c144162cf9ccb0dbbd8d4dd9b70c327ffc52eb232c796b34d0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","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 / oaknut_hfe-13.7.0-py3-none-any.whl

Download URL oaknut_hfe-13.7.0-py3-none-any.whl
Size 25.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eccd9dc866130790d41dd8b3df9d51878f5cc500b02b99616e97a2831b335910
BLAKE2b-256 checksum
How to use checksums
6e594164841e61a6180185e20444cbbe38115803ee8bc03d55b306b340e1e06f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","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 oaknut-hfe 13.7.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.

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