A Python Library for various tasks in an EKG DataOps operation.
- Concept Parser
- Persona Parser
- Story Validate Rule Parser
- Story Validate Rules Capture
- Story Validate Rules Executor
- Use Case Parser
- User Story Parser
pip install ekg-libOr using uv:
uv add ekg-libAdd ekg-lib as a dependency from GitHub:
uv add --git https://github.com/EKGF/ekg-lib.gitOr using pip:
pip install "git+https://github.com/EKGF/ekg-lib.git"After installation, the following CLI tools are available:
xlsx-parser --help
user-story-parser --help
pipeline-example --helpTo install as global commands using uv:
uv tool install ekg-libekg-lib uses dotenvage
to load environment variables from .env files with optional
age encryption of sensitive
values.
All CLI entry points (xlsx-parser, user-story-parser,
pipeline-example) call load_env() at startup, which
discovers and loads .env* files before any os.getenv() calls.
To use encrypted secrets:
# Install the dotenvage CLI
cargo binstall dotenvage
# Generate an age key (stored in ~/.local/state/)
dotenvage keygen
# Encrypt sensitive values in your .env file
dotenvage encrypt .env.localEncrypted values are safe to commit to version control. See the dotenvage documentation for details on file layering, key management, and CI/CD integration.
If you cloned this repository and want to work on ekg-lib itself:
uv syncThis creates a virtual environment using uv based on pyproject.toml.
To run all tests:
uv run pytestTo run a single test:
uv run pytest tests/<path-to-test> -k <name-of-test>uv build