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
Release history Release notifications | RSS feed
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
Close
Hashes for jsonschema_to_typeddict-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e886eafd40f532069a09bea8025aa767937bf240701369840746c55c5f56828 |
|
MD5 | 6cb37d8d30f94c8b3abe8efb5e9fd065 |
|
BLAKE2b-256 | 1bfad6ace7627e9ac28fc4127a04b8c4031d86e210a40d5fa0f7a771fdf05e21 |