skillfed

yacs

Yet Another Configuration System

yacs v0.1.8 3.4M downloads/30d#2,623 on PyPI1,337
Permissive license Abandoned released

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 yacs

uv

uv add yacs

poetry

poetry add yacs

Installing 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

Intended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 2.7Programming Language :: Python :: 3Topic :: Scientific/Engineering :: Artificial Intelligence

Tags

configuration management systemyaml config frameworkexperiment hyperparameter configreproducible ml configurationconfig file override systempython config defaultscommand line config override
config-managementreproducibilityml-workflows

More Artificial Intelligence packages