CLI and library for managing DSpace's Simple Archive Format (SAF)
To use as CLI:
pip install --user simple-archive
or with pipx
:
pipx install simple-archive
or:
- Clone repo
- Run
pdm install
in repo root - Activate the virtual environment.
Use as a library: pdm add simple-archive
.
Run safar <path/to/csv>
- Use
--zip
if you want to create a zip-archive. - By default all archives is written to
./output
but you can give--output dir
to change that.
The expected CSV format is shown below where the metadata is given in the form namespace.element[.qualifier]
.
Language can be specified by namespace.element[language]
or namespace.element.qualifier[language]
Example: dc.description[sv_SE]
Supported namespaces:
dc
(required)local
metashare
dcterms
files,dc.title,dc.date.issued,...
filename1||filename2,Title,2023-03-14,...
``