omegakit
omegakit is a small library on top of OmegaConf for experiment configs. Every
experiment is a YAML file in git that names its base and its imports by path. You
load it from your own main(), check it against a dataclass, and build your objects
from it. The same file and seed give the same run. Install it with
pip install omegakit, on Python 3.12 or newer.
# base.yaml
seed: 0
data:
$class: curvefit.data.Synthetic
function:
$ref: curvefit.data.sine
noise: 0.1
n: 200
seed: ${seed}
optimizer:
$class: curvefit.optim.SGD
$partial: true
lr: 0.1
# poly3.yaml
$base: ~import base.yaml
model:
$class: curvefit.models.Polynomial
degree: 3
from collections.abc import Callable
from dataclasses import dataclass
from curvefit.data import Dataset
from curvefit.models import Model
from curvefit.optim import Optimizer
from omegakit import instantiate, load_config
@dataclass
class Experiment:
seed: int
data: Dataset
model: Model
optimizer: Callable[..., Optimizer]
experiment = instantiate(load_config("poly3.yaml"), schema=Experiment)
poly3.yaml took the seed, the data and the optimizer from base.yaml, and added
a model. $class names a class to build, $ref passes a function as it is, and
$partial builds the optimizer later, once the model's parameters exist. The
dataclass, and the dataclasses that $class names, check the config before
anything is built: degree: three raises an error that names the key. curvefit is
the example experiment of the documentation.
What you can do
- One file per experiment, sharing a base: Getting started
- Save a run's config and repeat the run: Reproducible runs
- Run one experiment for many values: Parameter sweeps
- Check configs before anything runs, and get completion in your editor: Validation, Editor support
- Move an experiment to PyTorch: Using with PyTorch
omegakit does not launch jobs, parse your command line or record your runs. See how it compares with Hydra and other experiment tools.
Trust
Configs import and call Python code: loading one runs its resolvers, and
validating, checking and building one import the modules it names. Load configs
only from trusted sources, and read secrets with ${secret:NAME}. The
Trust model 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.7.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.7.0.tar.gz | 29.2 kB | With provenance | Details for omegakit-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| omegakit-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for omegakit-0.7.0-py3-none-any.whl |
Total release size: 66.8 kB
Release files / omegakit-0.7.0.tar.gz
| Download URL | omegakit-0.7.0.tar.gz |
|---|---|
| Size | 29.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bac10a20eb1decb47897eab337105197773d43e6b63d9e96260137350504114e
|
|
BLAKE2b-256 checksum How to use checksums |
a69819a89e2ae834e91e9d3786a77e1c5129d2afbc63d1e78ead6fc299336516
|
| 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.7.0-py3-none-any.whl
| Download URL | omegakit-0.7.0-py3-none-any.whl |
|---|---|
| Size | 37.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9643fd8db0370dd67caeab764ed2dfd3edadf12806fe1ec258089ae2a0e358f6
|
|
BLAKE2b-256 checksum How to use checksums |
ea71b483eb6cd27c42625455a5d34a5691355afb6e8f909c6235279241ba99e5
|
| 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.7.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.7.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.