Skip to content

Commit

Permalink
Update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Lee committed Jan 30, 2021
1 parent adfb623 commit 3b0bb60
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
# supabase-py

[![Documentation Status](https://readthedocs.org/projects/gotrue-py/badge/?version=latest)](https://gotrue-py.readthedocs.io/en/latest/?badge=latest)

Supabase client for Python. This mirrors the design of [supabase-js](https://github.com/supabase/supabase-js/blob/master/README.md)

## Usage

`pip3 install supabase`


```
import supabase
supabaseUrl=""
supabaseKey=""
client = supabase.Client(supabaseUrl, supabaseKey)
```


### See issues for what to work on

Rough roadmap:
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ authors = ["Joel Lee <joel@joellee.org>"]
license = "MIT"

[tool.poetry.dependencies]
python = "^3.7"
python = "^3.7.1"
postgrest-py = "^0.3.2"
realtime-py="^0.1.0"
gotrue="0.1.2"


[tool.poetry.dev-dependencies]

Expand Down
2 changes: 2 additions & 0 deletions supabase_py/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .lib import *
from .client import SupabaseClient
9 changes: 8 additions & 1 deletion supabase_py/client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from postgrest_py import PostgrestClient
import gotrue

class SupabaseClient():
class Client():
def __init__(self, supabaseUrl: str, supabaseKey: str):
if not supabaseUrl or not supabaseKey:
raise("supabaseUrl is required")
Expand All @@ -14,6 +15,12 @@ def __init__(self, supabaseUrl: str, supabaseKey: str):
self.supabaseKey = supabaseKey
# self.auth = self._initSupabaseAuthClient(SETTINGS)

def _from(self, table: str):
"""
Perform a table operation
"""
pass

def auth(self):
pass

Expand Down

0 comments on commit 3b0bb60

Please sign in to comment.