Skip to content

chore: Update README.md #302

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 24 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ The above test database is a blank supabase instance that has populated the `cou

Rough roadmap:

- [ ] Wrap [Postgrest-py](https://github.com/supabase/postgrest-py/)
- [ ] Wrap [Realtime-py](https://github.com/supabase/realtime-py)
- [x] Wrap [Gotrue-py](https://github.com/J0/gotrue-py)
- [x] Wrap [Postgrest-py](https://github.com/supabase-community/postgrest-py/)
- [ ] Wrap [Realtime-py](https://github.com/supabase-community/realtime-py)
- [x] Wrap [Gotrue-py](https://github.com/supabase-community/gotrue-py)
- [x] Wrap [storage-py](https://github.com/supabase-community/storage-py)
- [x] Wrap [functions-py](https://github.com/supabase-community/functions-py)

### Client Library

This is a sample of how you'd use supabase-py. Functions and tests are WIP

## Authenticate

```python
Expand Down Expand Up @@ -170,6 +170,25 @@ supabase: Client = create_client(url, key)
data = supabase.table("countries").delete().eq("id", 1).execute()
```

### Supabase Functions

```python
from supabase import create_client, Client

url: str = os.environ.get("SUPABASE_TEST_URL")
key: str = os.environ.get("SUPABASE_TEST_KEY")
supabase: Client = create_client(url, key)
func = supabase.functions()

@asyncio.coroutine
async def test_func(loop):
resp = await func.invoke("hello-world",invoke_options={'body':{}})
return resp

loop = asyncio.get_event_loop()
resp = loop.run_until_complete(test_func(loop))
loop.close()
```

## Realtime Changes

Expand Down