Skip to content

CLI and library for managing DSpace's Simple Archive Format (SAF)

License

Notifications You must be signed in to change notification settings

spraakbanken/simple-archive

Repository files navigation

simple-archive

PyPI version PyPI - Python Version PyPI - Downloads

Maturity badge - level 2 Stage

Code Coverage

CI(check) CI(release) CI(scheduled) CI(test)

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:

  1. Clone repo
  2. Run pdm install in repo root
  3. 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,...
``

About

CLI and library for managing DSpace's Simple Archive Format (SAF)

Resources

License

Stars

Watchers

Forks

Packages

No packages published