Metadata-Version: 2.1
Name: metador-core
Version: 0.0.2
Summary: Core of Metador, the metadata-first research data management framework.
Home-page: https://github.com/Materials-Data-Science-and-Informatics/metador-core
License: MIT
Keywords: metadata,rdm,FAIR,framework
Author: Anton Pirogov
Author-email: a.pirogov@fz-juelich.de
Requires-Python: >=3.8,<4.0
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Requires-Dist: Flask (>=2.1.3,<3.0.0)
Requires-Dist: Pillow (>=9.1.1,<10.0.0)
Requires-Dist: Pint (>=0.18,<0.19)
Requires-Dist: frozendict (>=2.3.4,<3.0.0)
Requires-Dist: h5py (>=3.6.0,<4.0.0)
Requires-Dist: importlib-metadata (>=4.11.4,<5.0.0)
Requires-Dist: isodate (>=0.6.1,<0.7.0)
Requires-Dist: jsonschema (>=4.4.0,<5.0.0)
Requires-Dist: overrides (>=7.0.0,<8.0.0)
Requires-Dist: pandas (>=1.4.1,<2.0.0)
Requires-Dist: panel (>=0.14.0,<0.15.0)
Requires-Dist: phantom-types (>=0.17.1,<0.18.0)
Requires-Dist: pydantic (>=1.10.2,<2.0.0)
Requires-Dist: pydantic-yaml[ruamel] (>=0.6.3,<0.7.0)
Requires-Dist: python-magic (>=0.4.25,<0.5.0)
Requires-Dist: simple-parsing (>=0.0.20,<0.0.21)
Requires-Dist: toml (>=0.10.2,<0.11.0)
Requires-Dist: typing-extensions (>=4.1.1,<5.0.0)
Requires-Dist: typing-utils (>=0.1.0,<0.2.0)
Requires-Dist: wrapt (>=1.14.1,<2.0.0)
Project-URL: Documentation, https://github.com/Materials-Data-Science-and-Informatics/metador-core
Project-URL: Repository, https://github.com/Materials-Data-Science-and-Informatics/metador-core
Description-Content-Type: text/markdown

# metador-core

![Project status](https://img.shields.io/badge/project%20status-alpha-%23ff8000)
[
![Test](https://img.shields.io/github/workflow/status/Materials-Data-Science-and-Informatics/metador-core/test?label=test)
](https://github.com/Materials-Data-Science-and-Informatics/metador-core/actions?query=workflow:test)
[
![Coverage](https://img.shields.io/codecov/c/gh/Materials-Data-Science-and-Informatics/metador-core?token=4JU2SZFZDZ)
](https://app.codecov.io/gh/Materials-Data-Science-and-Informatics/metador-core)
[
![Docs](https://img.shields.io/badge/read-docs-success)
](https://materials-data-science-and-informatics.github.io/metador-core/)

Core library of the Metador platform. It provides:

* an interface for managing structured and validated metadata (`MetadorContainer`)
* an API to manage immutable (but still "patchable") HDF5 files (`IH5Record`)
* an extensible entry-points based plugin system defining plugin groups and plugins
* core plugin group interfaces (schemas, packers, widgets, ...)
* general semantically aligned schemas that should be used and extended
* visualization widgets for common data types based on Bokeh and Panel
* generic dashboard presenting (meta)data for which suitable widgets are installed

## Getting Started

This library is not a batteries-included solution, it is intended for people interested in
using and extending the Metador ecosystem and who are willing to write their own plugins
to adapt Metador to their use-case and provide services based on it.

Please check out the tutorials that explain general concepts,
interfaces and specific plugin development topics are provided [here](./tutorial).

For a first taste, you can install this package just as any other package into your
current Python environment using:

<!--
old install link based on https:
metador-core@git+https://github.com/Materials-Data-Science-and-Informatics/metador-core.git
-->

```
$ pip install git+ssh://git@github.com:Materials-Data-Science-and-Informatics/metador-core.git
```

or if you are adding it as a dependency into your poetry project:

```
$ poetry add git+ssh://git@github.com:Materials-Data-Science-and-Informatics/metador-core.git
```

As usual, it is highly recommended that you use a
[virtual environment](https://stackoverflow.com/questions/41573587/what-is-the-difference-between-venv-pyvenv-pyenv-virtualenv-virtualenvwrappe)
to ensure isolation of dependencies between unrelated projects.

If you want to write or extend plugins, such as metadata schemas or widgets,
the provided tutorials will get you started.

If you want to contribute to the actual core, see further below.

## Compatibility and Known Issues

This package supports Python `>=3.8`.

There was a mysterious bug when using inside Jupyter `6.4.6`,
but there are no known problems when upgrading to Jupyter `6.4.10`.

If you encounter any problems, ensure that your bug is reproducible in a simple and
minimal standalone Python script that is runnable in a venv with this package installed
and can demonstrate your issue.

## Development

This project uses [Poetry](https://python-poetry.org/) for dependency
management, so you will need to have poetry
[installed](https://python-poetry.org/docs/master/#installing-with-the-official-installer)
in order to contribute.

Then you can run the following lines to setup the project and install the package:
```
$ git clone git@github.com:Materials-Data-Science-and-Informatics/metador-core.git
$ cd metador-core
$ poetry install
```

Run `pre-commit install` (see [https://pre-commit.com](https://pre-commit.com))
after cloning. This enables pre-commit to enforce the required linting hooks.

Run `pytest` (see [https://docs.pytest.org](https://docs.pytest.org)) before
merging your changes to make sure you did not break anything. To check
coverage, use `pytest --cov`.

To generate local documentation (as the one linked above), run
`pdoc -o docs metador_core` (see [https://pdoc.dev](https://pdoc.dev)).

## Acknowledgements

<div>
<img style="vertical-align: middle;" alt="HMC Logo" src="https://github.com/Materials-Data-Science-and-Informatics/Logos/raw/main/HMC/HMC_Logo_M.png" width=50% height=50% />
&nbsp;&nbsp;
<img style="vertical-align: middle;" alt="FZJ Logo" src="https://github.com/Materials-Data-Science-and-Informatics/Logos/raw/main/FZJ/FZJ.png" width=30% height=30% />
</div>
<br />

This project was developed at the Institute for Materials Data Science and Informatics
(IAS-9) of the Jülich Research Center and funded by the Helmholtz Metadata Collaboration
(HMC), an incubator-platform of the Helmholtz Association within the framework of the
Information and Data Science strategic initiative.

