Comparison
datamodel-code-generator vs jschema-to-python vs jsonschema-gentypes
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Datamodel Code Generator
Actively maintained. Last release 1 day ago, commits in 26 of the last 26 weeks. A safe choice.
$
pip install datamodel-code-generatorGenerate source code for Python classes from a JSON schema.
Likely abandoned. No release or commit for years (last release over 7 years ago).
$
pip install jschema-to-pythonTool to generate Python types based on TypedDict from a JSON Schema
Maintained. Last release 12 months ago, commits in 15 of the last 26 weeks. Weaker on recent releases and release cadence.
$
pip install jsonschema-gentypesIn short
- jschema-to-python looks abandoned: avoid it for new projects.
- datamodel-code-generator is the most used: 18.1M downloads a month, 8.5× more than jschema-to-python.
- datamodel-code-generator also has the best Pythie’s Index (79).
- datamodel-code-generator is growing fastest: downloads +17% over the last month.
- Safe default for a new project: datamodel-code-generator.
Side by side
| Metric | datamodel-code-generator | jschema-to-python | jsonschema-gentypes |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 79 | 17 |