Skip to main content

CLI for working with Acorn DFS, ADFS, and AFS disc images.

Project description

oaknut-disc

oaknut-disc

PyPI version Python versions License: MIT

disc is a unified command-line tool for inspecting, extracting from, and modifying Acorn computer disc images — Acorn DFS and Watford DDFS floppies, ADFS floppies and hard discs, and Acorn Level 3 File Server (AFS) partitions — through one consistent interface.

It speaks DFS, ADFS, and AFS transparently, with a filing-system prefix (dfs:, adfs:, afs:) to route commands on dual-partition images, and Acorn star-command aliases (*CAT, *DELETE, *RENAME, …) alongside their Unix-named equivalents.

Installation

oaknut-disc requires only uv, which handles Python installation and virtual environments for you.

Run without installing

uvx --from oaknut-disc disc <command> [options]

Persistent install

uv tool install oaknut-disc

then invoke it as just disc:

disc <command> [options]

Or with pip:

pip install oaknut-disc

Usage

# List the contents of a DFS floppy
disc ls 'games.ssd.$'

# Copy a file from a DFS floppy to an ADFS hard disc, mapping metadata across
disc cp 'games.ssd:$.ELITE' 'scsi0.dat:$.Elite'

# Create and initialise a Level 3 File Server disc
disc create scsi0.dat --format adfs-hard --capacity 10MiB --title Server
disc afs-init scsi0.dat --disc-name Server --user RJS:2MiB --emplace Library

# Walk both partitions of a dual ADFS + AFS hard disc
disc tree scsi0.dat

Documentation

Full walkthrough, cookbook, and command reference: https://rob-smallshire.github.io/oaknut/disc/

Licence

MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oaknut_disc-11.0.0.tar.gz (71.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oaknut_disc-11.0.0-py3-none-any.whl (38.4 kB view details)

Uploaded Python 3

File details

Details for the file oaknut_disc-11.0.0.tar.gz.

File metadata

  • Download URL: oaknut_disc-11.0.0.tar.gz
  • Upload date:
  • Size: 71.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for oaknut_disc-11.0.0.tar.gz
Algorithm Hash digest
SHA256 1093307575a0071c053b8f12f4cee5bdfbb0a97c779623883e68d44f335814ca
MD5 1ffff02ba5dd9659ed7cb0fd641943e8
BLAKE2b-256 986308edf2c197703adff5b21f08648ac3a6b6d1df8d14c7c55fb768ae386a96

See more details on using hashes here.

File details

Details for the file oaknut_disc-11.0.0-py3-none-any.whl.

File metadata

  • Download URL: oaknut_disc-11.0.0-py3-none-any.whl
  • Upload date:
  • Size: 38.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for oaknut_disc-11.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8d3c1ec7714a7baa46c3044fdb0fabd664a7d2f5ede7a09af32c9434697ca6e
MD5 a0191e2fe159eb01c9fe974c7d5cbdfe
BLAKE2b-256 37800c0c83661948c134e1c181b44bcc1f5842abfe7b576c1a203356d40bcf9d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page