Skip to main content

MEx common

Common library for MEx python projects.

cookiecutter cve-scan documentation linting opencode testing

Project

The Metadata Exchange (MEx) project is committed to improve the retrieval of RKI research data and projects. How? By focusing on metadata: instead of providing the actual research data directly, the MEx metadata catalog captures descriptive information about research data and activities. On this basis, we want to make the data FAIR1 so that it can be shared with others.

Via MEx, metadata will be made findable, accessible and shareable, as well as available for further research. The goal is to get an overview of what research data is available, understand its context, and know what needs to be considered for subsequent use.

RKI cooperated with D4L data4life gGmbH for a pilot phase where the vision of a FAIR metadata catalog was explored and concepts and prototypes were developed. The partnership has ended with the successful conclusion of the pilot phase.

After an internal launch, the metadata will also be made publicly available and thus be available to external researchers as well as the interested (professional) public to find research data from the RKI.

For further details, please consult our project page.

Contact
For more information, please feel free to email us at mex@rki.de.

Publisher

Robert Koch-Institut
Nordufer 20
13353 Berlin
Germany

Package

The mex-common library is a software development toolkit that is used by multiple components within the MEx project. It contains utilities for building pipelines like a common commandline interface, logging and configuration setup. It also provides common auxiliary connectors that can be used to fetch data from external services and a re-usable implementation of the MEx metadata schema as pydantic models.

License

This package is licensed under the MIT license. All other software components of the MEx project are open-sourced under the same license as well.

Development

Installation

  • install python on your system
  • on unix, run make install
  • on windows, run .\mex.bat install

Linting and testing

  • run all linters with make lint or .\mex.bat lint
  • run unit and integration tests with make test or .\mex.bat test
  • run just the unit tests with make unit or .\mex.bat unit

Updating dependencies

  • update boilerplate files with cruft update
  • update global requirements in requirements.txt manually
  • update git hooks with pre-commit autoupdate
  • update package dependencies using uv sync --upgrade
  • update github actions in .github/workflows/*.yml manually

Creating release

  • run mex release RULE to release a new version where RULE determines which part of the version to update and is one of major, minor, patch.

Python release verification

Python release artifacts (source distributions and wheels) published to GitHub Releases are signed keyless using sigstore.

To verify a release artifact manually, download the artifact (e.g. mex_common-<tag>-py3-none-any.whl) and its Sigstore bundle (mex_common-<tag>-py3-none-any.whl.sigstore.json), then run either:

Using sigstore:

sigstore verify identity \
  --bundle <path-to-bundle> \
  --cert-identity "https://github.com/robert-koch-institut/mex-common/.github/workflows/release.yml@refs/heads/main" \
  --cert-oidc-issuer "https://token.actions.githubusercontent.com" \
  <path-to-artifact>

Using cosign:

cosign verify-blob \
  --bundle <path-to-bundle> \
  --certificate-identity "https://github.com/robert-koch-institut/mex-common/.github/workflows/release.yml@refs/heads/main" \
  --certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
  <path-to-artifact>
  1. FAIR is referencing the so-called FAIR data principles – guidelines to make data Findable, Accessible, Interoperable and Reusable. ↩

Metadata

Release files for mex-common 3.7.0

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

Source distribution (sdist)

Source distribution for mex-common 3.7.0
File Size Uploaded Provenance Actions
mex_common-3.7.0.tar.gz 104.8 kB With provenance Details for mex_common-3.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mex-common 3.7.0
File Interpreter ABI Platform Actions
mex_common-3.7.0-py3-none-any.whl Python 3 none any Details for mex_common-3.7.0-py3-none-any.whl

Total release size: 260.1 kB

Release files / mex_common-3.7.0.tar.gz

Download URL mex_common-3.7.0.tar.gz
Size 104.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0d221637d6d2a9ef474c3330cee41ea7cca10e315a66bd038715515d7d8bf791
BLAKE2b-256 checksum
How to use checksums
b70d7195b2331f67b12beec0821249fdb87dd072d611cbf7bf4b50dabe653b60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Release files / mex_common-3.7.0-py3-none-any.whl

Download URL mex_common-3.7.0-py3-none-any.whl
Size 155.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73c1cd69480025af9c25e0a6cd3ce23436027f0e8d397abdbf121e7a71041f8f
BLAKE2b-256 checksum
How to use checksums
59547247cb3cb33f2939648d5823b73532d7a839898c9f5af7bb50cef7fdb8b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Security for mex-common 3.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mex_common-3.7.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.7.0 This release

2 release files Full provenance

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