Skip to main content

E-ARK Python Information Package Validation

Project description

E-ARK Python Information Package Validator

Core package and command line utility for E-ARK Information Package validation.

The validation core component implements validation rules defined by E-ARK specifications which can be found on the website of the Digital Information LifeCycle Interoperability Standards Board (DILCIS Board):

https://dilcis.eu/specifications/

Quick Start

Pre-requisites

Python 3.7+ is required.

Getting the code

Clone the project move into the directory:

git clone https://github.com/E-ARK-Software/py-e-ark-ip-validator.git
cd py-e-ark-ip-validator

Installating the application

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 .

Running the validator

From the command line and using the virtual environment, you can run the validator on an information package:

ip-check <path_to_directory_or_package>

If the path passed is a directory, it must contain a single folder which contains the information package (and no other files or folders):

user@machine:~$ tree input
<path to directory>
  ├── documentation
  ├── metadata
  ├── METS.xml
  ├── representations
     └── rep1
         ├── data
         ├── metadata
         └── METS.xml
  └── schemas

If the output paramter (-o) is specified, the validation result report (JSON format) is written to a file.

For Developers

Developers should install the testing dependencies as well, e.g. pytest and using the --editable flag:

pip install -U pip
pip install --editable ".[testing]"

Running tests

You can run unit tests from the project root: pytest ./tests/, or generate test coverage figures by: pytest --cov=ip_validation ./tests/. If you want to see which parts of your code aren't tested then: pytest --cov=ip_validation --cov-report=html ./tests/. After this you can open the file <projectRoot>/htmlcov/index.html in your browser and survey the gory details.

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

eark-validator-1.1.1.tar.gz (94.5 kB view details)

Uploaded Source

Built Distribution

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

eark_validator-1.1.1-py3-none-any.whl (122.7 kB view details)

Uploaded Python 3

File details

Details for the file eark-validator-1.1.1.tar.gz.

File metadata

  • Download URL: eark-validator-1.1.1.tar.gz
  • Upload date:
  • Size: 94.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for eark-validator-1.1.1.tar.gz
Algorithm Hash digest
SHA256 e38c2f4ff144cf67c50749954811491d93ccc0aef234215f1a1c92a0f44162d9
MD5 dc5db47183e29aab299d5c250162a8de
BLAKE2b-256 e5eff6ce648f10100d0495eea176f43a565a4e6b54fb193ff523ce96b1950c40

See more details on using hashes here.

File details

Details for the file eark_validator-1.1.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for eark_validator-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 561a675c6ad71f20d6dfb66144387710e4d33b7d229d9d4b764251d8a319d84b
MD5 fd67197df74e867706f9a47391bce3a2
BLAKE2b-256 3428f8ffeeb3f5eea3fb69a0e76933e8f48b22b8015bf64bb81bfa7d46de237b

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