Skip to main content

medali

https://travis-ci.com/TUW-GEO/medali.svg?branch=master https://coveralls.io/repos/github/TUW-GEO/medali/badge.svg?branch=master https://badge.fury.io/py/medali.svg https://readthedocs.org/projects/medali/badge/?version=latest https://img.shields.io/badge/License-MIT-yellow.svg

medali stands for MEtaDAta LIbrary and is responsible for parsing, tagging and interpreting product metadata.

Description

medali should be a place to establish version-controlled metadata definitions to guarantee homogeneous reading and writing of metadata within the scope of one product. It provides one module, the core module containing the class MetaData. This class offers a simple interface to actual metadata items, which are defined with respect to reference metadata. Such reference metadata can either be prepared manually as a dictionary or can be set in a configuration file. For mature products, the configuration files are stored in the folder in “src/medali/lib” under a product ID and a metadata version.

The Metadata class offers the following functionality:

  • initialisation via a metadata dictionary (+ optionally a reference metadata dictionary), via a product ID and metadata version combination, or via a configuration file path

  • setting and encoding (from a given data type to a string) the given metadata items

  • returning and decoding (from a string to a given data type) the given metadata items

  • checking if given metadata meets the criteria defined in the reference metadata (e.g., if the value is within a list of allowed values or if the value contains a specific string, …)

Installation

medali is a very light-weight package and has no dependencies. It can be installed via pip:

pip install medali

Adding products

A template configuration file for creating new reference metadata for a product can be found in the “templates” folder. The file should be named according to the metadata version and should be placed in a sub-folder in “src/medali/lib” named after the product ID. The reference metadata should have two sections:

  • “Metadata”: all needed tags and their data type (currently supported: string, boolean, datetime, integer, number)

  • “Expected_value”: should list metadata items that need to meet some specific criteria

Metadata

Release files for medali 0.2.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for medali 0.2.8
File Size Uploaded
medali-0.2.8.tar.gz 20.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for medali 0.2.8
File Interpreter ABI Platform
medali-0.2.8-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 43.4 kB

Release files / medali-0.2.8.tar.gz

Download URL medali-0.2.8.tar.gz
Size 20.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2ca5b87bbf931c353afa74a16e9049caecd623c32bc2f337352f4223784afdbe
BLAKE2b-256 checksum
How to use checksums
1567546d925dca99cb60b28ca917eac942b972d87a9618112971bfde0db5f152
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.17

Release files / medali-0.2.8-py2.py3-none-any.whl

Download URL medali-0.2.8-py2.py3-none-any.whl
Size 23.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
721c47f1365f95b01f98e88b35200e7d886f74ce26819fb6699c99d6fa61ec03
BLAKE2b-256 checksum
How to use checksums
9784d687d2e1e424ada34954238a77576d623ea7f81753fca1b5b074fe820c5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.17

Release history Release notifications | RSS feed

This release

0.2.8 This release

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

1 release file

0.2.0

1 release file

0.1.5

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page