Metadata-Version: 2.1
Name: sqlmodel-zod
Version: 0.1.1
Summary: A CLI tool to generate Zod schemas from SQLModel models
Author-email: OSS Mafia <dev@oss-mafia.com>
Maintainer-email: Matt Nick <matt@oss-mafia.com>, Adam Smith <adam@oss-mafia.com>
License: MIT License
        
        Copyright (c) 2024 OSS Mafia
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/OSSMafia/sqlmodel-zod-generator
Project-URL: Source, https://github.com/OSSMafia/sqlmodel-zod-generator
Keywords: sqlmodel,zod
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE

# SQLModel Zod Generator
A cli generator script to convert SQLModels into Zod schemas.


## Installation
```bash
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.

```bash
sqlmodel-zod /path/to/model/directory
```
