Skip to main content

A CLI tool to generate Zod schemas from SQLModel models

Project description

SQLModel Zod Generator

A cli generator script to convert SQLModels into Zod schemas.

Installation

pip install sqlmodel-zod

Usage

Run the command with the relative path to the directory where your models are stored. The output will be a single file named zod_schemas.js with all model definitions.

sqlmodel-zod /path/to/model/directory

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

sqlmodel_zod-0.1.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

sqlmodel_zod-0.1.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file sqlmodel_zod-0.1.1.tar.gz.

File metadata

  • Download URL: sqlmodel_zod-0.1.1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for sqlmodel_zod-0.1.1.tar.gz
Algorithm Hash digest
SHA256 86bcadaaa34e4bdb19403fcc25fba39a41abcf861ea0cb72c33f71f7218954f7
MD5 c8968bcbe028dd1875d2580b751edad8
BLAKE2b-256 0fa2839937e4fabdd8c56416cd142d4528a931749797e4df2f28c772c7e55b0f

See more details on using hashes here.

File details

Details for the file sqlmodel_zod-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sqlmodel_zod-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0687ff24c5f2cd1fe90fd92b77ef85e5e9505cb0586ac8b02baa348850236a5a
MD5 61dc8d54f61eaa9b795a3fb7a58452d3
BLAKE2b-256 2d9d704410bad74dc8bde8541ea788a019e48c93e077128f109222e064965f72

See more details on using hashes here.

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