yacs
Yet Another Configuration System
What it is and what it does
YACS is a configuration system designed for scientific and machine learning projects that need to manage and reproduce experiments reliably. It lets you define default configurations in Python code, override them with YAML files for specific experiments, and further customize them from the command line—all while keeping a single authoritative source for what can be configured.
The package centers on the CfgNode object, which acts as a hierarchical configuration container. You create a defaults file (typically config.py) that documents all available options with sensible starting values, then create lightweight YAML files for each experiment that only specify what changes. Your code imports the config, merges in overrides, and can freeze it to prevent accidental modification. This workflow emerged from real systems used in computer vision research and is particularly useful when you need to run many experiment variants and be able to reproduce them later.
Use it for:
- Define and manage hyperparameters for machine learning model training across multiple experiments with reproducible YAML configs.
- Override configuration defaults from command-line arguments without duplicating config logic in argument parsing.
- Document all configurable system options in one central Python file as a reference for all team members.
- Serialize experimental settings to disk so you can later recall exactly what configuration produced a given result.
- Share experiment configs as simple YAML files between team members without requiring code changes or environment variables.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
YACS is a lightweight configuration management system that lets you define, serialize, and override experimental configurations using YAML files and Python code, designed for reproducible machine learning and scientific workflows.
Yes, if you are working on a machine learning or scientific project that needs reproducible configuration management and you do not require ongoing maintenance or updates. The package is stable and does what it claims, but it is abandoned—no security patches, no bug fixes, and no support for future Python versions. Use it for new projects only if you are comfortable maintaining a fork or accepting technical debt.
Install
yacs on PyPI
pip
pip install yacsuv
uv add yacspoetry
poetry add yacsInstalling yacs
Before you install
Installation is straightforward with low friction—pure Python wheels for both Python 2 and 3. However, the package is abandoned as of 2020-08-10 with no commits since 2022-04-13, so expect no maintenance, bug fixes, or security updates going forward.
License in practice
Licensed under Apache 2.0 (permissive), so you can use, modify, and distribute it freely in commercial and open-source projects without restriction.
Quickstart
pip install yacs
from yacs.config import CfgNode as CN
_C = CN()
_C.TRAIN = CN()
_C.TRAIN.LR = 0.1
cfg = _C.clone()
cfg.merge_from_file('experiment.yaml')
print(cfg.TRAIN.LR)
Verify before relying
- Whether the package works reliably with modern Python versions beyond what was tested at release
- Whether PyYAML dependency has known vulnerabilities or compatibility issues with current Python releases
Package facts
| License | not declared (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — PyYAML |
| Maintenance | abandoned — 2,195 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,434,393/month — #2,623 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: yacs-0.1.8-py2-none-any.whl; yacs-0.1.8-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
sconfsconf is a YAML-based configuration library…
permissive · top 15,000 on PyPI
yacmanYacman provides a Python interface for reading,…
permissive · top 15,000 on PyPI
simple-settingsLoads and manages application settings from…
permissive · top 15,000 on PyPI
HyperPyYAMLExtends YAML syntax with Python-friendly…
permissive · top 5,000 on PyPI
bestconfigLoads configuration from multiple file formats…
permissive · top 15,000 on PyPI
lazr.configlazr.config lets you define configuration…
copyleft · top 15,000 on PyPI
dynamic-yamlAdds dynamic string interpolation to YAML…
permissive · top 15,000 on PyPI
confuseConfuse is a YAML configuration library that…
permissive · top 5,000 on PyPI
ml-collectionsProvides dict-like configuration data…
permissive · top 5,000 on PyPI
hydra-coreHydra manages configuration for complex…
permissive · top 1,000 on PyPI