ioxio-data-product-definition-tooling

IOXIO Data Product Definition Tooling


License
BSD-3-Clause
Install
pip install ioxio-data-product-definition-tooling==0.3.0

Documentation

IOXIO® Data Product Definitions tooling

Tools for managing Data Product definitions

Installation

poetry install

Usage

poetry run convert-definitions --help

poetry run validate-definitions --help

# run tests
poetry run invoke test

# release a new version (after bumping it in pyproject.toml)
poetry run invoke release

Pre-commit hooks

repos:
  - repo: https://github.com/ioxio-dataspace/ioxio-data-product-definition-tooling
    rev: main # You probably want to lock this to a specific tag
    hooks:
      - id: data-product-definition-converter
        pass_filenames: false
        args: ["src", "DataProducts"]
        files: |
          (?x)^(
            DataProducts/.*json|
            src/.*py
          )$
      - id: data-product-definition-validator
        files: ".*?DataProducts/.*?json$"
        args: ["./DataProducts"]