prime-pydantic-config
Pydantic-driven CLI with TOML/YAML config file support for ML
Decision gist · record as of 2026-08-14
Yes, with caution. The package solves a real problem—bridging Pydantic models and CLI/file-based config—with a clean API and low install friction. However, it is very new, has minimal adoption, and lacks a declared license. Use it for internal or experimental projects; verify the license and test thoroughly before production deployment.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >=3.10.
- Optional TOML and YAML support requires extras installation.
- Low friction; pure Python wheel with only pydantic as a runtime dependency.
License · maintenance · safety
(unclear) — License status is unclear—no SPDX identifier or raw license text is available. Verify the repository's license before adopting in proprietary or restricted contexts.
last release 2026-07-20 (25 days) · last repo commit 2026-07-20 · 3 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 344,221 downloads/mo, #7,377 on PyPI
Alternatives
Verify before relying
pip install prime-pydantic-config
from prime_pydantic_config import cli, BaseConfig
class Config(BaseConfig):
lr: float = 1e-4
batch_size: int = 32
config = cli(Config)- Whether the package is production-ready given its recent first release and low repository star count.
- Exact scope of TOML and YAML support and whether they require external dependencies when installed via extras.
- Whether discriminated unions and validation aliases work as documented with all Pydantic versions.
What it is and what it does
prime-pydantic-config wraps Pydantic models to generate a CLI that accepts configuration from files (TOML, YAML, JSON) and command-line arguments, with file values as defaults and CLI args taking precedence. It handles nested config groups via dotted paths, boolean flags with negation, lists, dicts, optional sub-configs, discriminated unions, and validation aliases—all with auto-generated help text sourced from field descriptions and docstrings.
The package is designed for ML training scripts and similar applications where configuration needs to be flexible, composable, and human-readable. It depends only on pydantic and offers optional extras for TOML and YAML parsing. The CLI is built directly from your Pydantic model definition, so no separate schema or argument parser code is needed.
Use it for
- Configure ML training scripts with nested groups (model, data, optimizer) via CLI, TOML, or YAML files.
- Load a base config from a file and override specific fields from the command line without re-specifying unchanged values.
- Support multiple config variants (e.g., different optimizers) using discriminated unions, switchable by a CLI flag.
- Migrate legacy config keys to new paths transparently using Pydantic validators, keeping old CLI flags working.
- Generate self-documenting help text from Pydantic field descriptions and model docstrings without manual flag definitions.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with caution.
The package solves a real problem—bridging Pydantic models and CLI/file-based config—with a clean API and low install friction. However, it is very new, has minimal adoption, and lacks a declared license. Use it for internal or experimental projects; verify the license and test thoroughly before production deployment.
Install
prime-pydantic-config on PyPI
Before you install
Low friction; pure Python wheel with only pydantic as a runtime dependency. Active maintenance with recent releases.
Requires Python >=3.10. Optional TOML and YAML support requires extras installation.
License in practice
License status is unclear—no SPDX identifier or raw license text is available. Verify the repository's license before adopting in proprietary or restricted contexts.
Quickstart
pip install prime-pydantic-config
from prime_pydantic_config import cli, BaseConfig
class Config(BaseConfig):
lr: float = 1e-4
batch_size: int = 32
config = cli(Config)
Verify before relying
- Whether the package is production-ready given its recent first release and low repository star count.
- Exact scope of TOML and YAML support and whether they require external dependencies when installed via extras.
- Whether discriminated unions and validation aliases work as documented with all Pydantic versions.
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepydantic |
| Maintenance | Actively maintained 25 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 344,221 / month, #7,377 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: prime_pydantic_config-0.4.2-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 › “pydantic cli config parser”
- prime-pydantic-configBuilds a command-line interface from Pydantic models, loading and…
- tyrotyro generates command-line interfaces and configuration objects…
- argdanticBuilds typed command-line interfaces by combining argparse with…
Give your agent the search over MCP, or paste the wish link into any chat.
More Application Frameworks packages
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.
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.
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.
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.
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.
See also pylint-pydantic · config-parser · pydantic-compat · argdantic · pydantic-argparse · bump-pydantic · pydantic_yaml · pydantic_core · pyaml-env · datacontract-specification