CLI and library for working with Simple Archive Format
Project description
simple-archive
CLI and library for managing DSpace's Simple Archive Format (SAF)
Install
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
.
Usage
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.
CSV Format
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,...
``
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
simple_archive-0.3.0.tar.gz
(19.2 kB
view hashes)
Built Distribution
Close
Hashes for simple_archive-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaaab5379a2b03518ff9c8c9162c8b0a4f94593483aa7754d61df77dddf8117b |
|
MD5 | f8e23ef2f401de91b0fa2cbe82bb0dc6 |
|
BLAKE2b-256 | a06c50db1893edace4ff392a0a7d8f6bfe4f6952d3c5347b7ba77a97081b7d8b |