Skip to content

Commit afa8189

Browse files
author
Joel Lee
committed
Rename files to align with python convention
1 parent 20106ce commit afa8189

File tree

7 files changed

+10
-51
lines changed

7 files changed

+10
-51
lines changed

Diff for: supabase_py/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
from .src import *
1+
from .lib import *
22
from .client import Client

Diff for: supabase_py/client.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import gotrue
22

33
from postgrest_py import PostgrestClient
4-
from .src.SupabaseAuthClient import SupabaseAuthClient
5-
from .src.SupabaseRealtimeClient import SupabaseRealtimeClient
6-
from .src.SupabaseQueryBuilder import SupabaseQueryBuilder
4+
from .lib.supabase_auth_client import SupabaseAuthClient
5+
from .lib.supabase_realtime_client import SupabaseRealtimeClient
6+
from .lib.supabase_query_builder import SupabaseQueryBuilder
77
from typing import Optional
88

99

@@ -90,7 +90,6 @@ def _initPostgrestClient(self):
9090
def _getAuthHeaders(self):
9191
headers = {}
9292
# What's the corresponding method to get the token
93-
# authBearer = self.auth.session().token if self.auth.session().token else self.supabaseKey
9493
headers["apiKey"] = self.supabaseKey
9594
headers["Authorization"] = f"Bearer {self.supabaseKey}"
9695
return headers

Diff for: supabase_py/src/SupabaseAuthClient.py

-19
This file was deleted.

Diff for: supabase_py/src/SupabaseQueryBuilder.py

-15
This file was deleted.

Diff for: supabase_py/src/SupabaseRealtimeClient.py

-12
This file was deleted.

Diff for: supabase_py/src/__init__.py

Whitespace-only changes.

Diff for: tests/test_dummy.py

+6
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1+
import supabase_py
12
def test_dummy():
3+
# Test auth component
24
assert True == True
5+
6+
7+
def test_client_initialziation():
8+
client = supabase_py.Client("http://testwebsite.com", "atestapi")

0 commit comments

Comments
 (0)