coqpit
Simple (maybe too simple), light-weight config management through python data-classes.
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >=3.7.0.
- 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 · maintenance · safety
(unclear) — 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.
last release 2022-12-21 (1332 days) · last repo commit 2024-12-09 · 1 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 101,226 downloads/mo, #12,952 on PyPI
Alternatives
Verify before relying
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')- 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.
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 on this page. Verify before relying on it.
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
coqpit on PyPI
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.
Requires Python >=3.7.0.
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')
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 the current Python release >=3.7.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagedataclasses |
| Maintenance | Dormant 1,332 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 101,226 / month, #12,952 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3 |
Evidence: coqpit-0.0.17-py3-none-any.whl
Tags
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 › “JSON config serialization”
- coqpitCoqpit provides configuration management through Python dataclasses…
- coqpit-configCoqpit-config provides lightweight configuration management through…
- databindDatabind deserializes JSON-like nested data structures into Python…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
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.
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.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also coqpit-config · dataclass-wizard · databind.json · simple-parsing · databind · polyfactory · databind.core · argparse-dataclass · dacite · warchant_dc_schema