--- id: jschema-to-python version: "1.2.3" license: MIT license_treatment: permissive maintenance: abandoned --- # jschema-to-python — Generate source code for Python classes from a JSON schema. License: permissive · Maintenance: abandoned · Downloads: 2.7M/mo ## What it is and what it does jschema-to-python is a command-line code generator that reads a JSON schema file and produces Python class definitions matching that schema's structure. It uses attrs, jsonpickle, and pbr as runtime dependencies to support the generated code. The tool accepts a schema path, output directory, and root class name, with optional hints files to control code generation behavior. The package is positioned as a bridge between schema-first API design and Python development—useful when you have a JSON schema and want corresponding Python dataclasses without writing them by hand. However, it has been abandoned since late 2022 with no active maintenance, meaning it will not receive updates for Python version changes, dependency conflicts, or bug fixes. Use it for: - Generate Python models from OpenAPI or JSON Schema specifications for API client libraries. - Automate boilerplate class creation when working with schema-driven microservices. - Convert external JSON schema definitions into Python code for data validation and serialization. - Bootstrap Python projects that consume or validate JSON data against a known schema. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Generates Python class definitions from JSON schema files, converting schema structure into typed Python code via command-line tool. No—install only if you are locked into an older Python environment and have no alternative. The package is abandoned with no maintenance since 2022, no releases since 2019, and no guarantee of compatibility with modern Python. For new projects, use maintained alternatives like dataclasses-json, pydantic, or marshmallow-jsonschema instead. ## Install pip install jschema-to-python uv add jschema-to-python poetry add jschema-to-python ## Installing jschema-to-python Before you install: Low install friction with three straightforward runtime dependencies. However, the package is abandoned—last commit was 2022-10-25 and no releases since 2019-10-05. No active maintenance means bugs and compatibility issues will not be addressed. License in practice: MIT license is permissive, allowing commercial and private use with minimal restrictions. You may use, modify, and distribute this code freely as long as you include the license notice. Quickstart: pip install jschema-to-python python -m jschema_to_python -s schema.json -o output_dir -r RootClass Requires Python >= 2.7; the package targets older Python versions and may have compatibility issues with modern Python releases. Verify before relying: - Whether the generated code works correctly with current Python versions (3.10+) given the last release was 2019. - Whether the three runtime dependencies (attrs, jsonpickle, pbr) have themselves aged or introduced breaking changes. - Real-world success rate for complex or nested JSON schemas beyond basic use cases. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: abandoned - Downloads: 2.7M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags json schema to python classes, generate python from json schema, json schema code generator, schema-driven python models, json schema python codegen, code-generation, abandoned [View on SkillFed](https://skillfed.io/packages/jschema-to-python) · [View on PyPI](https://pypi.org/project/jschema-to-python/)