A multi-purpose tool for manipulating .a2r disk images
Go to file
4am 4aff749cb1 1.0 release 2018-09-08 18:28:21 -04:00
.gitignore 1.0 release 2018-09-08 18:28:21 -04:00
LICENSE Initial commit 2018-09-08 18:24:35 -04:00
README.md 1.0 release 2018-09-08 18:28:21 -04:00
a2rchery.py 1.0 release 2018-09-08 18:28:21 -04:00

README.md

$ ./a2rchery.py verify -h
usage: a2rchery verify [-h] file

Verify file structure and metadata of a .a2r disk image (produces no output
unless a problem is found)

positional arguments:
  file        .a2r disk image

optional arguments:
  -h, --help  show this help message and exit



$ ./a2rchery.py dump -h
usage: a2rchery dump [-h] file

Print all available information and metadata in a .a2r disk image

positional arguments:
  file        .a2r disk image

optional arguments:
  -h, --help  show this help message and exit



$ ./a2rchery.py edit -h
usage: a2rchery edit [-h] [-i INFO] [-m META] file

Edit information and metadata in a .a2r disk image

positional arguments:
  file                  .a2r disk image (modified in place)

optional arguments:
  -h, --help            show this help message and exit
  -i INFO, --info INFO  change information field. INFO format is "key:value".
                        Acceptable keys are disk_type, write_protected,
                        synchronized, creator, version. Other keys are
                        ignored. For boolean fields, use "1" or "true" or
                        "yes" for true, "0" or "false" or "no" for false.
  -m META, --meta META  change metadata field. META format is "key:value".
                        Standard keys are title, subtitle, publisher,
                        developer, copyright, version, language, requires_ram,
                        requires_machine, notes, side, side_name, contributor,
                        image_date. Other keys are allowed.

Tips:

 - Use repeated flags to edit multiple fields at once.
 - Use "key:" with no value to delete a metadata field.
 - Keys are case-sensitive.
 - Some values have format restrictions; read the .a2r specification.

$ ./a2rchery.py export -h
usage: a2rchery export [-h] file

Export (as JSON) all information and metadata from a .a2r disk image

positional arguments:
  file        .a2r disk image

optional arguments:
  -h, --help  show this help message and exit

$ ./a2rchery.py import -h
usage: a2rchery import [-h] file

Import JSON file to update metadata in a .a2r disk image

positional arguments:
  file        .a2r disk image

optional arguments:
  -h, --help  show this help message and exit