Skip to main content

CLI and library for working with Simple Archive Format

Project description

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,...
``

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)

Uploaded Source

Built Distribution

simple_archive-0.3.0-py3-none-any.whl (8.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page