Skip to main content

Konfigure

A YAML-based configuration management tool for separating code from prompts in LLMs.

Installation

# Install from PyPI
pip install konfigure

# Install from source
pip install git+https://github.com/sunnybak/konfigure.git#subdirectory=python

Usage

import konfigure

# Load a YAML file
config = konfigure.load('config.yaml')

# Access values using dot notation
print(config.a.b)  # Prints the value of b in the a section

# Set values
config.a.b = 'new value'
config.new_section = {'key': 'value'}

# Render Jinja2 templates
template_value = config.a.b.render(variable='value')

# Save changes back to the file
konfigure.dump(config, 'config.yaml')

Features

  • Load YAML configuration files into memory
  • Access configuration values using dot notation
  • Modify configuration values in memory
  • Render string values as Jinja2 templates
  • Save configuration back to YAML files

Development

Local Setup

# Clone the repository
git clone https://github.com/sunnybak/konfigure.git
cd konfigure/python

# Install in development mode
pip install -e .

# Install development dependencies
pip install -e ".[dev]"

Running Tests

# Run all tests
pytest

# Run tests with coverage
pytest --cov=konfigure

# Run a specific test file
pytest konfigure/tests/test_core.py

Building the Package

# Build the package
python -m build

# Install the built package
pip install dist/konfigure-0.1.0-py3-none-any.whl

License

MIT

Metadata

Release files for konfigure 0.1.7

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

Source distribution (sdist)

Source distribution for konfigure 0.1.7
File Size Uploaded Provenance Actions
konfigure-0.1.7.tar.gz 9.7 kB With provenance Details for konfigure-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for konfigure 0.1.7
File Interpreter ABI Platform Actions
konfigure-0.1.7-py3-none-any.whl Python 3 none any Details for konfigure-0.1.7-py3-none-any.whl

Total release size: 19.6 kB

Release files / konfigure-0.1.7.tar.gz

Download URL konfigure-0.1.7.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4fbc97ae2dcccd1214e71a7ab96f35aa2db45d8af4c463ab4f9866c2d43321d3
BLAKE2b-256 checksum
How to use checksums
10b6400cc6ca9dca350188e3a7253d3910a53c404f925fd4ac926f4a14067683
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 May 23, 2025.

Transparency log

Release files / konfigure-0.1.7-py3-none-any.whl

Download URL konfigure-0.1.7-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d44935efd18808ebb2bfdac2423d6aec20ec0b7863038ef0ada15d7a517177a
BLAKE2b-256 checksum
How to use checksums
12775f0b72a46ca4d304b1079c4472e8ca08154cec5ae903823284e73b926e70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 May 23, 2025.

Transparency log

Security for konfigure 0.1.7

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for konfigure-0.1.7.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 May 23, 2025.

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.

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