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.1
    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 Distribution

jsonschema_to_typeddict-1.4.2.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jsonschema_to_typeddict-1.4.2-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file jsonschema_to_typeddict-1.4.2.tar.gz.

File metadata

  • Download URL: jsonschema_to_typeddict-1.4.2.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for jsonschema_to_typeddict-1.4.2.tar.gz
Algorithm Hash digest
SHA256 b6305b71aaa3ad026eb57484b600b4c1057c5f97b68b42927b095240c24f360d
MD5 d7876903d0a14ad749aaa260d48ab12e
BLAKE2b-256 c03bfc4165a1d508299d6caa9354a574a2b6e987d7e4963d6f342830478b0bd7

See more details on using hashes here.

Provenance

The following attestation bundles were made for jsonschema_to_typeddict-1.4.2.tar.gz:

Publisher: python.yml on henriquegemignani/jsonschema-to-typeddict

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jsonschema_to_typeddict-1.4.2-py3-none-any.whl.

File metadata

File hashes

Hashes for jsonschema_to_typeddict-1.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 70dd824c4010ecc05ea7738307671a3d8fe04ffce52e8bd78e9bea9eb56361b6
MD5 ad4edcb095d9b17fe07362e37c0ddbe5
BLAKE2b-256 90a272a787f4d22dfea86e8a6b64775a510ac317f9720bd37570882ff4d8ae48

See more details on using hashes here.

Provenance

The following attestation bundles were made for jsonschema_to_typeddict-1.4.2-py3-none-any.whl:

Publisher: python.yml on henriquegemignani/jsonschema-to-typeddict

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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