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.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: sqlmodel_zod-0.1.0.tar.gz
  • Upload date:
  • Size: 5.9 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.0.tar.gz
Algorithm Hash digest
SHA256 b5fec634db102ef940cddc9cbcd7006565d133a71f802831bcd8bd12a92f1bce
MD5 a59e424db7266f52973c3d1cd429082d
BLAKE2b-256 be086366553829c86221dc0e715412c1b9847da0beade637ba118bb57cd17ab0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sqlmodel_zod-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f8a68832d601a1910a25f84dd6d56ecf60cd965248ded65a9c4330bcc861878d
MD5 8e6f1a818536bb02e56f97e30d44a3d0
BLAKE2b-256 dd8040483c485c4d4a494cab036ec479ea8090bb0e19bbd971eb67c233402d8b

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