$npx skillfedfor your agent

draccus

A slightly opinionated framework for simple dataclass-based configurations based on Pyrallis.

Worth itPyPI Application FrameworksReleased Jun 2026838.5K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — draccus-0.11.6-py3-none-any.whl
v0.11.6 · released 2026-06-12 · Python >=3.9 · 4 runtime deps: mergedeep, pyyaml, toml, typing-inspect

Yes. Draccus is actively maintained, has no known vulnerabilities, and solves a real problem—structured config management with IDE support—more cleanly than raw argparse or manual YAML loading. The low install friction and permissive license make it a low-risk addition. The Alpha status reflects its origin as a fork, not instability; it's already in production use. Install it if you need nested configs, config file inclusion, or runtime type selection; skip it if your config needs are simple enough for a basic argparse setup.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with a pure-Python wheel and four lightweight runtime dependencies.
  • Actively maintained with a recent release; marked as Alpha but in use with steady download volume.

License · maintenance · safety

MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in both open-source and proprietary projects.

last release 2026-06-12 (63 days) · last repo commit 2026-06-11 · 89 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 838,513 downloads/mo, #4,928 on PyPI

Verify before relying

from dataclasses import dataclass
import draccus

@dataclass
class TrainConfig:
    workers: int = 8
    exp_name: str = 'default_exp'

@draccus.wrap()
def main(cfg: TrainConfig):
    print(f"Training {cfg.exp_name} with {cfg.workers} workers...")

if __name__ == "__main__":
    main()
  • Whether config file inclusion via !include tag works with all YAML edge cases or only standard structures
  • Performance characteristics when handling deeply nested configs or large config files
  • Compatibility with Python 3.11+ beyond the stated 3.9 and 3.10 support
Same gist for agents: .md · .json

What it is and what it does

Draccus is a configuration framework that binds command-line arguments and YAML/TOML/JSON config files directly to Python dataclasses. It extends Pyrallis with support for config file inclusion (allowing you to split configs across files), choice registries (runtime selection between different config subtypes), and better handling of nested config containers. Your dataclass fields become both type-checked configuration parameters and IDE-autocompleted attributes; the framework parses arguments from the command line, a config file, or both, and initializes your dataclass with the result.

The library depends on pyyaml, toml, mergedeep, and typing-inspect to handle parsing, merging, and type resolution. It's designed for projects that need structured, nested configurations—particularly machine learning workflows where you might choose between different model architectures or optimizer types at runtime. The decorator-based API (@draccus.wrap) keeps the boilerplate minimal.

Use it for

  • Machine learning experiment configs: define model, optimizer, and training parameters as nested dataclasses and switch between them via config files.
  • Multi-environment deployment: split base config, environment-specific overrides, and secrets into separate files and include them in a main config.
  • CLI tools with complex options: replace argparse boilerplate with a clean dataclass definition and automatic --help generation.
  • Configuration inheritance: use choice registries to let users select between different implementations (e.g., database backends) at startup.
  • Config validation and IDE support: leverage dataclass type hints for autocomplete and static type checking of your configuration structure.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Draccus is actively maintained, has no known vulnerabilities, and solves a real problem—structured config management with IDE support—more cleanly than raw argparse or manual YAML loading. The low install friction and permissive license make it a low-risk addition. The Alpha status reflects its origin as a fork, not instability; it's already in production use. Install it if you need nested configs, config file inclusion, or runtime type selection; skip it if your config needs are simple enough for a basic argparse setup.

Install

draccus on PyPI

Before you install

Low install friction with a pure-Python wheel and four lightweight runtime dependencies. Actively maintained with a recent release; marked as Alpha but in use with steady download volume.

License in practice

MIT license permits unrestricted use, modification, and distribution in both open-source and proprietary projects.

Quickstart

from dataclasses import dataclass
import draccus

@dataclass
class TrainConfig:
    workers: int = 8
    exp_name: str = 'default_exp'

@draccus.wrap()
def main(cfg: TrainConfig):
    print(f"Training {cfg.exp_name} with {cfg.workers} workers...")

if __name__ == "__main__":
    main()

Verify before relying

  • Whether config file inclusion via !include tag works with all YAML edge cases or only standard structures
  • Performance characteristics when handling deeply nested configs or large config files
  • Compatibility with Python 3.11+ beyond the stated 3.9 and 3.10 support

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
4 packages
mergedeeppyyamltomltyping-inspect
MaintenanceActively maintained 63 days since the last release
Last repo commit
First released
Downloads838,513 / month, #4,928 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 3 - AlphaOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.9

Evidence: draccus-0.11.6-py3-none-any.whl

Tags

Capabilities
dataclass configuration parsingyaml config to dataclasscommand line argument parsernested config managementconfig file inclusionchoice registry subtypingstructured config framework
Topics
configuration-managementdataclass-basedcli-framework

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “dataclass configuration parsing”

  • draccusDraccus parses command-line arguments and configuration files into…
  • databindDatabind deserializes JSON-like nested data structures into Python…
  • json-strong-typingSerializes Python dataclasses to JSON and deserializes JSON back to…

Give your agent the search over MCP, or paste the wish link into any chat.

More Application Frameworks packages

fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
textual Worth it
PyPI · Application Frameworks · released Jun 2026

Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.

Install it if you're developing CLI tools, dashboards, or interactive terminal applications.

MITpure Python
443.6Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
mcp Worth it
PyPI · Application Frameworks · released Jul 2026

Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.

Install it if you need to build or connect to servers.

MITpure Python · 3.10+
319.3Mdownloads / mo
Werkzeug Worth it
PyPI · Application Frameworks · released Apr 2026

Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.

BSD-3-Clausepure Python · 3.9+
268.1Mdownloads / mo

See also simple-parsing · argparse-dataclass · config-parser · sconf · PyStaticConfiguration · dataclass-wizard · datafiles · jax-dataclasses · yacs · dacite