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
- One config per environment, sharing a base: Getting started
- Swap Postgres for SQLite in development and tests: Swapping an implementation
- Check configs before anything runs, and get completion in your editor: Validation, Editor schemas
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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| omegakit-0.6.0.tar.gz | 29.1 kB | With provenance | Details for omegakit-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| omegakit-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for omegakit-0.6.0-py3-none-any.whl |
Total release size: 66.1 kB
Release files / omegakit-0.6.0.tar.gz
| Download URL | omegakit-0.6.0.tar.gz |
|---|---|
| Size | 29.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77301c650dbd50949ee277b8606e4c382cc4540913be7b9179fb9ece93ea39c1
|
|
BLAKE2b-256 checksum How to use checksums |
c637ae9a4605d72e4ac5ba15b6ba89c6259e7d6848cc228a5cee3385d3fe7557
|
| 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 logRelease files / omegakit-0.6.0-py3-none-any.whl
| Download URL | omegakit-0.6.0-py3-none-any.whl |
|---|---|
| Size | 36.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
23b73d35da5423c5cc94eb39f52733240a8561c121be2a1bc928d724d4563dc1
|
|
BLAKE2b-256 checksum How to use checksums |
77148f9bdb8fc0b01a3068779d7c690a9d64a97658df390ff8d72f6738163064
|
| 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 logSecurity for omegakit 0.6.0
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.
Attestation for omegakit-0.6.0.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 logA 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.