--- id: coqpit version: "0.0.17" license: unclear license_treatment: unclear maintenance: dormant --- # coqpit — Simple (maybe too simple), light-weight config management through python data-classes. License: unclear · Maintenance: dormant · Downloads: 101.2K/mo ## What it is and what it does Coqpit is a lightweight configuration library built on Python dataclasses that lets you define structured configs with type hints, default values, and validation. It handles serialization to and from JSON, supports nested and inherited configurations, and can parse values from command-line arguments—useful for machine learning workflows where you need to swap parameters without changing code. The package intentionally avoids external dependencies, relying only on the standard library's dataclasses module. It's designed for scenarios where you want a schema-driven config file that can be read by other programming languages via JSON, with built-in type checking and the ability to mark fields as mandatory or provide dynamic defaults. The library also supports pretty-printing configs and exporting them to dictionaries for programmatic access. Use it for: - Define and validate ML training configs with typed fields, default values, and range constraints for hyperparameter experiments. - Save and load experiment configurations to JSON, then share or version-control them independently of code. - Override config values from the command line during training runs without modifying the source code or config files. - Organize large configs into nested dataclasses for dataset, preprocessing, and model parameters, keeping them maintainable. - Enforce that certain config fields are explicitly set before use, catching missing required values early. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Coqpit provides configuration management through Python dataclasses with JSON serialization, type checking, and command-line argument parsing, designed for machine learning projects that need portable, schema-driven configs. Yes, if you need a minimal, dependency-free config system for ML projects and can tolerate dormant maintenance. The package is stable for its current scope—JSON serialization, nested configs, and CLI parsing work as documented. However, do not use it if you require active maintenance, ongoing Python version support, or a clear license statement. Verify the license in the repository before production use. ## Install pip install coqpit uv add coqpit poetry add coqpit ## Installing coqpit Before you install: Low install friction with only a standard library dependency (dataclasses). However, the package is dormant—last release was 2022-12-21 and no commits for 1332 days—so expect no active maintenance or bug fixes. License in practice: License status is unclear; the package metadata contains no license declaration. Before using in production or distributing, verify the actual license terms in the repository. Quickstart: from dataclasses import dataclass from coqpit import Coqpit @dataclass class MyConfig(Coqpit): val_a: int = 10 val_b: str = "example" config = MyConfig() config.save_json('config.json') config.load_json('config.json') Requires Python >=3.7.0. Verify before relying: - Whether the unclear license status has been resolved or clarified in the repository since the last release. - Whether the dormant status means the package is stable and complete, or abandoned and at risk of incompatibility with future Python versions. - Real-world adoption beyond the cited TTS project and whether active forks or maintained alternatives exist. ## Package facts - License: not declared (unclear) - Python support: supports_current - Install friction: low - Maintenance: dormant - Downloads: 101.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags dataclass config management, JSON config serialization, command line argument parsing, type-checked configuration, nested config inheritance, ML experiment config, no-dependency config library, config-management, dataclass-based, ml-workflow [View on SkillFed](https://skillfed.io/packages/coqpit) · [View on PyPI](https://pypi.org/project/coqpit/)