Skip to main content

omegakit

YAML configs that import and extend each other, and build your Python objects. One file per environment, one base they share, and an optional dataclass schema that checks types and unknown keys before any configured object is built. A library on OmegaConf: you call load_config, and it does not take over main(). Install it with pip install omegakit, on Python 3.12 or newer.

# base.yaml
server:
  $class: webapp.server.Server
  port: 8000
  secret_key: ???
database:
  $class: webapp.db.SQLite
  url: sqlite:///webapp.db
# prod.yaml
$class: webapp.App
$base: ~import base.yaml
server:
  secret_key: ${oc.env:SECRET_KEY}
database:
  $class: webapp.db.Postgres
  url: postgres://db.internal/webapp
from omegakit import instantiate, load_config
from webapp import App

app = instantiate(load_config("prod.yaml"), App)

prod.yaml took everything from base.yaml and replaced the database, and the secret came from the environment. App is your class: $class: webapp.App at the top of the file tells omegakit to build it, and the same key on the database node chose Postgres. webapp is the example application of the documentation.

What you can do

Start with Getting started, or see how omegakit compares with Hydra and other libraries.

Trust

Configs import and call Python code: loading, validating and checking one imports the modules it names and runs its resolvers. Load configs only from trusted sources, and log them with mask_secrets. The Security page lists what runs.

omegakit supports OmegaConf 2.3 and 2.4. It builds on OmegaConf but is not affiliated with or endorsed by the OmegaConf project. Contributing.

Metadata

Release files for omegakit 0.6.1

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

Source distribution (sdist)

Source distribution for omegakit 0.6.1
File Size Uploaded Provenance Actions
omegakit-0.6.1.tar.gz 29.2 kB With provenance Details for omegakit-0.6.1.tar.gz

Built distribution (wheel)

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

Total release size: 66.1 kB

Release files / omegakit-0.6.1.tar.gz

Download URL omegakit-0.6.1.tar.gz
Size 29.2 kB
Tags Source
SHA-256 checksum
How to use checksums
427a44b89604cbbf0628d4fd73f7590ebd39e6f63e6dc879d2860ad0f7912c93
BLAKE2b-256 checksum
How to use checksums
88baf1adeadeb3a0de23d5b59ab6ec182465aee32324baadd8fbf1bfe8fcb2ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 27, 2026.

Transparency log

Release files / omegakit-0.6.1-py3-none-any.whl

Download URL omegakit-0.6.1-py3-none-any.whl
Size 36.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d8c85fa72f39931b9bdfb150244c018874a3a1d40be281d2caaee877e54fa8c
BLAKE2b-256 checksum
How to use checksums
cb61c6a4ea6603518fdb63149ca662b3f79fa49f074cf09d44aff919b80f2445
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 27, 2026.

Transparency log

Security for omegakit 0.6.1

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for omegakit-0.6.1.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 Sep 27, 2026.

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