Copyright 2022 Artefactual Systems Inc. http://artefactual.com
A Python toolkit for VanDocs transfer packages
Tools:
- validate: Validate a VanDocs transfer package
- convert: Convert a VanDocs transfer package to multiple Archivematica standard transfer packages (one per VanDocs container)
Clone the repository:
git clone git@gitlab.artefactual.com:clients/cva/vandockit.gitChange to the cloned directory and install with pip:
cd vandockit/
pip install .vandockit validate PATHValidates that the VanDocs transfer package at PATH meets the expected directory and file structure.
Validation errors are echoed to STDOUT and the script exits with error code 1.
All validation check outcomes (pass or fail) are logged to logs/.
vandockit convert SOURCE_PATH DEST_PATHConvert the VanDocs transfer package at SOURCE_PATH to one Archivematica standard transfer directory per container in DEST_PATH. Validates the VanDocs package before conversion; validation failure prevents conversion.
Validation and conversion errors are echoed to STDOUT and the script exits with
error code 1. All validation check and conversion step outcomes (pass or fail)
are logged to logs/.
Make is used to provide some utility scripts for Vandockit.
make initInstall Python production dependencies with pip. If you installed Vandockit
with pip install . the production dependencies are already installed.
make init-devInstall Python development dependencies (e.g. black, pytest) with pip.
make testRun tests with Pytest. Requires pytest to be installed with make init-dev or
manually.
make test-covRun tests and display a coverage report in the terminal. Requires pytest and
pytest-cov, which are included in the development dependencies.