Skip to main content

Generates a python file with a TypedDict definition that attempts to match what is in a given JsonSchema.

Project description

jsonschema-to-typeddict

precommit hook for creating a TypedDict definition for your JsonSchema

Usage

Add the following to your .pre-commit-config.yaml:

-   repo: https://github.com/henriquegemignani/jsonschema-to-typeddict
    rev: v1.0
    hooks:
    -   id: jsonschema-to-typeddict
        files: src/my_package/files/schema.json
        args: [ --output-path, src/my_package/configuration.pyi, --root-name, Configuration ]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

jsonschema_to_typeddict-0.1.0-py3-none-any.whl (7.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page