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 Documentation

Read the documentation — full walkthrough, cookbook, and command reference.

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

It recognises each format by content, 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 (ADFS host + AFS tail)
disc create scsi0.dat --geometry capacity=10MB --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

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-12.7.1.tar.gz (91.7 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-12.7.1-py3-none-any.whl (40.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: oaknut_disc-12.7.1.tar.gz
  • Upload date:
  • Size: 91.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","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-12.7.1.tar.gz
Algorithm Hash digest
SHA256 b227008709daddee936f9313d824190c4c79962fbec2d982c7603b5851e56793
MD5 7f09ac6f08972f926e5fa6cb41b3c52f
BLAKE2b-256 8e95ebd4b8eda382a18d31785d4d34d59604a16163ca3dc89f0aa7adf16b6bf0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: oaknut_disc-12.7.1-py3-none-any.whl
  • Upload date:
  • Size: 40.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","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-12.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6cbff974446dc810f3fd173d8b3aec470f1e827e534543af7334b2a97655376e
MD5 7533d7a46d87edd907d30fd4937273b7
BLAKE2b-256 e09d6e6061e6781235f4d44b32bfb2d6f513b347416dbd60f493f111954188c8

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