Supabase Pydantic Models: Generate Pydantic Models from Your Supabase Database Schemas #30993
kmbhm1
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone! I’m excited to share a new project that I’ve been working on for generating Supabase types/models.
What is it?
supabase-pydantic
helps you generate Pydantic (v2) models directly from your Supabase database schema. While it’s currently focused on bridging FastAPI withsupabase-py
, the ultimate goal is to evolve into a versatile solution for generating models from various databases and using them across your Python stack. It takes inspiration from the TypeScript type generation capabilities in the Supabase CLI, aiming to offer a similar developer experience for Python users.Key Features
Installation
The recommended installation is via pip:
You can also install with conda:
Example
Try it with your local Supabase instance:
Learn More
We’re actively working on documentation and guides. You can explore our (work-in-progress) guides website here: https://kmbhm1.github.io/supabase-pydantic
Get Involved
We’d love your feedback, suggestions, and contributions! Feel free to open issues, submit PRs, or discuss new ideas here.
Thanks for checking it out, and I look forward to hearing what you think. Let’s make Pydantic model generation from Supabase (and beyond) a breeze!
Beta Was this translation helpful? Give feedback.
All reactions