A project to translate Supabase schemas into Pydantic models
Project description
Supabase Pydantic Schemas
A project for digesting Supabase (or Postgres) table & view schemas into Pydantic models. Currently, this is ideal for projects that integrate FastAPI with Supabase-Python, but more updates are coming soon ...
Installation
$ pip install supabase-pydantic # install
$ touch .env # create .env file
$ echo "DB_NAME=<your_db_name>" >> .env # add your postgres db name
$ echo "DB_USER=<your_db_user>" >> .env # add your postgres db user
$ echo "DB_PASS=<your_db_password>" >> .env # add your postgres db password
$ echo "DB_HOST=<your_db_host>" >> .env # add your postgres db host
$ echo "DB_PORT=<your_db_port>" >> .env # add your postgres db port
Usage
$ sb-pydantic # generate default schemas.py to ./entities/fastapi
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
supabase_pydantic-0.3.0.tar.gz
(17.8 kB
view hashes)
Built Distribution
Close
Hashes for supabase_pydantic-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48cc3ed279f62dd51a584e61dc07341da2076d647c19e59155022bcab87fe101 |
|
MD5 | a794306a0fb32652313461686ed2e564 |
|
BLAKE2b-256 | 796a9cf6116cf4f8b6d707981d6c6a332a57eefd53fe0770ee7b7d382a289a67 |