Skip to main content

declarative YAML-based configuration parser

Project description

Kaizo

Kaizo is a declarative YAML-based configuration parser for Python. It allows you to dynamically load, resolve, and execute Python objects, functions, and plugins from YAML configuration files.

Key features:

  • Cross-file imports
  • Lazy execution
  • Result caching
  • Plugin dispatch
  • Variable references
  • Local Python module support

Installation

Install Kaizo via pip:

pip install kaizo

Or install from source:

git clone https://github.com/NaughtFound/kaizo.git
cd kaizo
pip install -e .

Requirements:

  • Python 3.10+
  • PyYAML

Quick Start

Create a simple configuration file hello.yaml:

hello:
  module: builtins
  source: print
  args:
    - "Hello Kaizo"

Load and execute it:

from kaizo import ConfigParser

parser = ConfigParser("hello.yaml")
config = parser.parse()

# Accessing the entry automatically resolves and executes it
config["hello"]  # Outputs: Hello Kaizo

Documentation

Full documentation, including configuration, parser architecture, plugins, and utilities, is available in the docs:

Kaizo Documentation


Contributing

Contributions are welcome! Please submit issues or pull requests via GitHub.


License

Apache License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kaizo-1.3.6.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kaizo-1.3.6-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file kaizo-1.3.6.tar.gz.

File metadata

  • Download URL: kaizo-1.3.6.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kaizo-1.3.6.tar.gz
Algorithm Hash digest
SHA256 4ec953a95f7cd43919efdfe0e10f0c24d3a91c72a7399c848620a49edac1a0eb
MD5 073f2ef4144c750eb5ee3453f62974e3
BLAKE2b-256 f7084c6c2b12633c1ae8bdd462fcb9aa64a1c1e01e2ae788dc733d0b77db46c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for kaizo-1.3.6.tar.gz:

Publisher: publish.yml on NaughtFound/kaizo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kaizo-1.3.6-py3-none-any.whl.

File metadata

  • Download URL: kaizo-1.3.6-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kaizo-1.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 113f7c95b1b0a6f97462edb1e444d84bf59a6c68d1fa81ccf1c1568d085dbb5e
MD5 b2b20290f6187ec7ecc68e8b5458a559
BLAKE2b-256 5894138caaca9590a6c060684c21f60097675f9b059a991baa9b2668240b0cc5

See more details on using hashes here.

Provenance

The following attestation bundles were made for kaizo-1.3.6-py3-none-any.whl:

Publisher: publish.yml on NaughtFound/kaizo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page