Newer
Older
### postgrestutils
A very basic POSTGREST client and utils
#### Setup
- add `"postgrestutils"` to your `INSTALLED_APPS` setting
- add `POSTGREST_UTILS_BASE_URI` (should default to the most frequently used POSTGREST instance in the future) and `POSTGREST_UTILS_JWT` to your project settings
```python
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")