postgrestutils
A very basic POSTGREST client and utils
Setup
Django
- add
"postgrestutils"
to yourINSTALLED_APPS
setting - add
POSTGREST_UTILS_BASE_URI
(should default to the most frequently used POSTGREST instance in the future) andPOSTGREST_UTILS_JWT
to your project settings
from postgrestutils.client import pgrest_client
pgrest_client.get("kerbals?select=id,forename")
Other projects
from postgrestutils import settings
settings.BASE_URI = "http://localhost:3000"
settings.JWT = ""
from postgrestutils.client import pgrest_client
res = pgrest_client.get("kerbals?select=id,forename")