ekg-lib

A Python Library for various tasks in an EKG DataOps operation.

Badges

PyPI version Build & Test License: MIT Python 3.14+ uv Linting & Formatting: ruff Type checking: mypy

Metadata Parsers

Capture Steps

Maturity Model Tools

Pipelines and Export

LDAP Variants

Storage and Data Access

Knowledge Graph and SPARQL Utilities

Core Utilities

Installation

pip install ekg-lib

Or using uv:

uv add ekg-lib

From GitHub

Add ekg-lib as a dependency from GitHub:

uv add --git https://github.com/EKGF/ekg-lib.git

Or using pip:

pip install "git+https://github.com/EKGF/ekg-lib.git"

CLI tools

After installation, the following CLI tools are available:

xlsx-parser --help
user-story-parser --help
pipeline-example --help

To install as global commands using uv:

uv tool install ekg-lib

Development setup (from source)

If you cloned this repository and want to work on ekg-lib itself:

uv sync

This creates a virtual environment using uv based on pyproject.toml.

Tests

To run all tests:

uv run pytest

To run a single test:

uv run pytest tests/<path-to-test> -k <name-of-test>

Packaging

uv build