Skip to content
Snippets Groups Projects
Commit bcef7d65 authored by Fynn Becker's avatar Fynn Becker :crab:
Browse files

Update README

parent d826fae4
Branches
Tags
No related merge requests found
......@@ -3,12 +3,25 @@
A very basic POSTGREST client and utils
#### Setup
##### Django
- 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
#### Usage
```python
from postgrestutils import postgrest_client
postgrest_client.get("kerbals?select=id,forename")
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")
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment