Package: eatb
eatb - eArchiving Tool BoxAboutThe 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 athttps://earkcsip.dilcis.eu).Quick StartPre-requisitesPython 3.7+ is required.Install latest package version from the Python Package Index (PyPi)pip install eatbInstall from GitHub source codeClone the project move into the directory:git clone https://github.com/E-ARK-Software/eatb.git
cd eatbSet up a local virtual environment:virtualenv -p python3 venv
source venv/bin/activateUpdate pip and install the application:pip install -U pip
pip install .UseCreate information packages:python3 eatb/package_creator.py -n <packagename> -d <package_directory> -t SIPThe tooleatballows 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 filetest.txtas representationrepr1and anEAD.xmlmetadata file.myip
├── metadata
│   └── EAD.xml
└── representations
    └── repr1
        └── data
            └── test.txtUsing the packaging command, the structural and preservation data,METS.xmlandpremis.xmlis added to the package:myip
├── metadata
│   ├── dc.xml
│   └── preservation
│       └── premis.xml
├── METS.xml
└── representations
    └── repr1
        ├── data
        │   └── test.txt
        ├── metadata
        │   └── preservation
        │       └── premis.xml
        └── METS.xmlA 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 projectGet source code and create virtual environment usingpipClone the project and move into the directory:git clone https://github.com/E-ARK-Software/eatb.git
cd eatbSet up a local virtual environment:virtualenv -p python3 venv
source venv/bin/activateUnit testsInstall py.testpip install -U pytestRun tests:py.test tests