Skip to main content

A package to extract metadata from files and directories

Project description

o2r meta

Project Status: Active – The project has reached a stable, usable state and is being actively developed. DOI SWH

This is python library with a set of tools for extract-map-validate workflows as part of the o2r project:

  1. schema & documentation of the o2r metadata
  2. extract - collect meta information from files in a workspace
  3. broker - translate metadata from o2r to third party schemas
  4. validate - check if metadata set is valid to the schema
  5. harvest - collect metadata from external sources via OAI-PMH
  6. adding new parsers to the program

For their role within o2r, please refer to o2r-architecture.

Getting started

The full functionality of o2r-meta, including building the documentation and running the tests, requires Python >= 3.7.

Installation from source code

git clone https://github.com/o2r-project/o2r-meta.git
cd o2r-meta
pip install -r requirements.txt
pip install -e .

Common pitfall: pygdal version has to match the system GDAL version. Verify the system GDAL version like this:

gdal-config --version

and, if necessary, force pygdal version to be installed as following:

pip install pygdal==x.x.x.x

Installation with Docker

Another way of installation is provided by the Dockerfile. Build it like this:

git clone https://github.com/o2r-project/o2r-meta.git
cd o2r-meta
docker build -t meta .

And start a tool of o2r-meta like this:

docker run --rm -v $(pwd)/extract/tests/:/testdata:ro meta -debug extract -i /testdata -s

Build the documentation

To familiarise with the use of o2r-meta and get access to the How-to guide, we recommend the installation of the documentation before using the tool.

cd docs/
pip install -r requirements-docs.txt
make html

This will create directory build/html under docs, which contains the documentation. The entry point is file index.html.

Run the tests

The o2r-meta tests use pytest. To install the necessary packages:

pip install -U pytest
pip install -U pytest-console-scripts

To run the tests:

cd tests
pytest

How to cite

To cite this software please use

Nüst, Daniel, 2018. Reproducibility Service for Executable Research Compendia: Technical Specifications and Reference Implementation. Zenodo. doi:10.5281/zenodo.2203843

License

o2r-meta is licensed under Apache License, Version 2.0, see file LICENSE. Copyright (C) 2016-2020 - o2r project

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

o2r_meta-1.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file o2r_meta-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: o2r_meta-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.13

File hashes

Hashes for o2r_meta-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 acba61d311a07161b035492064dbeaa99b8671b16ab5eb0ee9cf46ab7e1c1d14
MD5 e08e4c6e42d68df5562bbb5c3ddf86f2
BLAKE2b-256 22f1a05fbc2632e02187bdc8348b0f5eeb41bec139d60eea8bca4ee332c9f079

See more details on using hashes here.

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