Skip to main content

A suite of tools for the creation of information packages for archival purposes.

Project description

eatb - eArchiving Tool Box

About

The archiving tool box is a suite of tools for the creation of information packages for archival purposes. The archival information package must follow the structure and comply with metadata requirements defined by the E-ARK specification for information packages (CSIP available at https://earkcsip.dilcis.eu).

Quick Start

Pre-requisites

Python 3.7+ is required.

Install latest package version from the Python Package Index (PyPi)

pip install eatb

Install from GitHub source code

Clone the project move into the directory:

git clone https://github.com/E-ARK-Software/eatb.git
cd eatb

Set up a local virtual environment:

virtualenv -p python3 venv
source venv/bin/activate

Update pip and install the application:

pip install -U pip
pip install .

Use

Create information packages:

python3 eatb/package_creator.py -n <packagename> -d <package_directory> -t SIP

The tool eatb allows creating an E-ARK information packages based on files which are organized according to the basic file system structure as defined by the CSIP (https://earkcsip.dilcis.eu).

A minimal example is the following information package data structured according to CSP with one data file test.txt as representation repr1 and an EAD.xml metadata file.

myip
├── metadata
│   └── EAD.xml
└── representations
    └── repr1
        └── data
            └── test.txt

Using the packaging command, the structural and preservation data, METS.xml and premis.xml is added to the package:

myip
├── metadata
│   ├── dc.xml
│   └── preservation
│       └── premis.xml
├── METS.xml
└── representations
    └── repr1
        ├── data
        │   └── test.txt
        ├── metadata
        │   └── preservation
        │       └── premis.xml
        └── METS.xml

A more complete example with two representations is shown in the example below.

,-------------------------------------------------------.
| Information package {Persistent Unique Identifier}    |
|-------------------------------------------------------|
| - metadata/                                           | <--- Descriptive metadata
|     - EAD.xml                                          |
|-------------------------------------------------------|
| - representations/                                    | <--- Representations
|     - text_representation/                            | 
|         - data/                                       |
|             - file1.txt                               |
|             - file2.txt                               |
|         - metadata/                                   |
|         - documentation/                              |
|     - csv_representation/                             | 
|         - data/                                       |
|             - file1.csv                               |
|             - file2.csv                               |
|         - metadata/                                   |
|         - documentation/                              |
|-------------------------------------------------------|
| - schemas/                                            | <--- Schema files for validation
|     - IP_CS_mets.xsd                                  |
|     - premis-v2-2.xsd                                 |
|     - xlink.xsd                                       |
|-------------------------------------------------------|
| - METS.xml                                            | <--- Root METS file (structural metadata)
`-------------------------------------------------------'

Set up a development environment for the project

Get source code and create virtual environment using pip

Clone the project and move into the directory:

git clone https://github.com/E-ARK-Software/eatb.git
cd eatb

Set up a local virtual environment:

virtualenv -p python3 venv
source venv/bin/activate

Unit tests

Install py.test

pip install -U pytest

Run tests:

py.test tests

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

eatb-0.1.9.tar.gz (162.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eatb-0.1.9-py3-none-any.whl (186.5 kB view details)

Uploaded Python 3

File details

Details for the file eatb-0.1.9.tar.gz.

File metadata

  • Download URL: eatb-0.1.9.tar.gz
  • Upload date:
  • Size: 162.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for eatb-0.1.9.tar.gz
Algorithm Hash digest
SHA256 c63f8f48b2a54672a67abfd600589f0566cf7d55132b0319237e260b98ae4ecf
MD5 c5fb02a4dd99fe485a089bcdaa72a7a0
BLAKE2b-256 f24156a24f07fa7b2b3ec6c52e4aeabf71f47251a79921bf87a8540143e9828f

See more details on using hashes here.

File details

Details for the file eatb-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: eatb-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 186.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for eatb-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 20f3953e772e03a26d2ee9f7e1819b7f4c5cdd38f9336c62f514348b155eefae
MD5 ab066fbd7a92d9a9d4d4e9bd6c1becd2
BLAKE2b-256 679a5f2739cb556fe7cb3c8ebee02cad313985167d73d2e39126297802d02d46

See more details on using hashes here.

Supported by

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