Skip to main content

Generate disk file paths for mkisofs that fit on certain size discs.

Project description

gendisc

Python versions PyPI - Version GitHub tag (with filter) License GitHub commits since latest release (by SemVer including pre-releases) QA Tests Coverage Status Documentation Status mypy pre-commit pydocstyle pytest Ruff Downloads Stargazers

@Tatsh Mastodon Follow

Generate disk file paths for mkisofs that fit on certain size discs.

Installation

Poetry

poetry add gendisc

Pip

pip install gendisc

Usage

Usage: gendisc [OPTIONS] PATH

  Make a file listing filling up discs.

Options:
  --cross-fs                  Allow crossing file systems.
  -D, --drive FILE            Drive path.
  -d, --debug                 Enable debug logging.
  -i, --starting-index INDEX  Index to start with (defaults to 1).  [x>=1]
  -o, --output-dir DIRECTORY  Output directory. Will be created if it does not
                              exist.
  -p, --prefix TEXT           Prefix for volume ID and files.
  -r, --delete                Unlink instead of sending to trash.
  -h, --help                  Show this message and exit.

The output is a series of shell scripts (1 for each disc) that do the following:

  • Generate the ISO image with mkisofs for the current set.
  • Save a SHA256 sum of the image for verification.
  • Save a tree listing for later use (tree must be installed).
  • Save a file listing via find for later use.
  • Requests to insert a blank disc.
  • Uses cdrecord to burn (currently set to burn at 4x speed).
  • Ejects and re-inserts the disc.
  • Verifies the disc.
  • Deletes the source files or sends them to the bin.
  • Ejects the disc.
  • Requests to move the disc to a label printer.

If you have mogrify (ImageMagick) installed, a label will be generated. This can be then opened in a tool that can ask your printer (such as an Epson XP-7100) to print to disc (GIMP). In GIMP, be sure to set the Width and Height to 12 cm in Image Settings in the print dialogue before printing.

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

gendisc-0.0.2.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

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

gendisc-0.0.2-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file gendisc-0.0.2.tar.gz.

File metadata

  • Download URL: gendisc-0.0.2.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.3 Linux/6.14.6-gentoo-limelight

File hashes

Hashes for gendisc-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0686ecc15e834e56e9030530e039cced738e62404938a7fd5c738d6316c453a0
MD5 0d7f26964b0248dd801b9c45f5d1a123
BLAKE2b-256 40abab80c34ec0345e95a253866eb8cf1e3eaca29ae909b9dc5e788f767251bb

See more details on using hashes here.

File details

Details for the file gendisc-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: gendisc-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.3 Linux/6.14.6-gentoo-limelight

File hashes

Hashes for gendisc-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d17fec9db77c39f82b5aa7a5376bda6b7012c240fa35d2f19b4efefc6221fb02
MD5 c17738fd621a62f79be2a2494f26ddcd
BLAKE2b-256 aaff776171117853f0f84ece501ddf166de99a2987424f83784745e988eebe0c

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