conflit
Layered YAML configuration for Python. Compose multiple config files, patch nested keys without repeating unchanged ones, accumulate lists across layers, and optionally validate the result with Pydantic.
TLDR
# base.yaml
model:
num_layers: 6
hidden_dim: 512
features:
- mixed_precision
# gpu_large.yaml — only what changes; hidden_dim is preserved
model:
num_layers: 12
features: !append
- distributed_training
# experiment.yaml
_compose:
- base.yaml
- gpu_large.yaml
run_name: orion-v1-large
from pathlib import Path
from conflit import load
cfg = load(Path("experiment.yaml"))
# {"model": {"num_layers": 12, "hidden_dim": 512},
# "features": ["mixed_precision", "distributed_training"],
# "run_name": "orion-v1-large"}
cfg = load(Path("experiment.yaml"), schema=OrionConfig)
cfg.model.num_layers # 12 — typed, validated
See examples/ for the full walkthrough and docs/ for the configuration model reference.
Install
uv sync
poe # list available tasks
Contributing
See CONTRIBUTING.md.
Metadata
Release files for conflit 0.1.4
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 |
|---|---|---|---|---|
| conflit-0.1.4.tar.gz | 20.3 kB | Without provenance | Details for conflit-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| conflit-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for conflit-0.1.4-py3-none-any.whl |
Total release size: 50.0 kB
Release files / conflit-0.1.4.tar.gz
| Download URL | conflit-0.1.4.tar.gz |
|---|---|
| Size | 20.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3099dfbf515f060d0ee70576be7f05240e8a9c23887fbe085217a40103eccf2f
|
|
BLAKE2b-256 checksum How to use checksums |
8f3bc46dc7bf12bb54bb48e55e4b735be07e6827803e9e227d22449f431b13fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.17
|
Release files / conflit-0.1.4-py3-none-any.whl
| Download URL | conflit-0.1.4-py3-none-any.whl |
|---|---|
| Size | 29.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc4540fceaa5a669f43aec78665426fa131a90028797dee29b361d470740dc85
|
|
BLAKE2b-256 checksum How to use checksums |
3128566a0e55750fb1654982c6bd936c628cc378c697f31a8aaa808c0e3f714f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.17
|
Security for conflit 0.1.4
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.