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 hashes)

Uploaded Source

Built Distribution

sqlmodel_zod-0.1.1-py3-none-any.whl (4.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