Skip to content

Commit

Permalink
Rename files to align with python convention
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Lee committed Feb 2, 2021
1 parent 20106ce commit afa8189
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 51 deletions.
2 changes: 1 addition & 1 deletion supabase_py/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from .src import *
from .lib import *
from .client import Client
7 changes: 3 additions & 4 deletions supabase_py/client.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import gotrue

from postgrest_py import PostgrestClient
from .src.SupabaseAuthClient import SupabaseAuthClient
from .src.SupabaseRealtimeClient import SupabaseRealtimeClient
from .src.SupabaseQueryBuilder import SupabaseQueryBuilder
from .lib.supabase_auth_client import SupabaseAuthClient
from .lib.supabase_realtime_client import SupabaseRealtimeClient
from .lib.supabase_query_builder import SupabaseQueryBuilder
from typing import Optional


Expand Down Expand Up @@ -90,7 +90,6 @@ def _initPostgrestClient(self):
def _getAuthHeaders(self):
headers = {}
# What's the corresponding method to get the token
# authBearer = self.auth.session().token if self.auth.session().token else self.supabaseKey
headers["apiKey"] = self.supabaseKey
headers["Authorization"] = f"Bearer {self.supabaseKey}"
return headers
Expand Down
19 changes: 0 additions & 19 deletions supabase_py/src/SupabaseAuthClient.py

This file was deleted.

15 changes: 0 additions & 15 deletions supabase_py/src/SupabaseQueryBuilder.py

This file was deleted.

12 changes: 0 additions & 12 deletions supabase_py/src/SupabaseRealtimeClient.py

This file was deleted.

Empty file removed supabase_py/src/__init__.py
Empty file.
6 changes: 6 additions & 0 deletions tests/test_dummy.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
import supabase_py
def test_dummy():
# Test auth component
assert True == True


def test_client_initialziation():
client = supabase_py.Client("http://testwebsite.com", "atestapi")

0 comments on commit afa8189

Please sign in to comment.