Skip to content

Commit ad2fe1c

Browse files
authored
chore: add import async client (#760)
1 parent 4a67fc2 commit ad2fe1c

File tree

2 files changed

+36
-5
lines changed

2 files changed

+36
-5
lines changed

supabase/__init__.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,31 @@
22
from postgrest import APIResponse as PostgrestAPIResponse
33
from storage3.utils import StorageException
44

5+
# Version
56
from .__version__ import __version__
7+
8+
# Async Client
9+
from ._async.auth_client import AsyncSupabaseAuthClient as ASupabaseAuthClient
10+
from ._async.client import AsyncClient as AClient
11+
from ._async.client import AsyncStorageClient as ASupabaseStorageClient
12+
from ._async.client import ClientOptions as AClientOptions
13+
from ._async.client import create_client as acreate_client
14+
15+
# Sync Client
616
from ._sync.auth_client import SyncSupabaseAuthClient as SupabaseAuthClient
717
from ._sync.client import ClientOptions
818
from ._sync.client import SyncClient as Client
919
from ._sync.client import SyncStorageClient as SupabaseStorageClient
1020
from ._sync.client import create_client
21+
22+
# Realtime Client
1123
from .lib.realtime_client import SupabaseRealtimeClient
1224

1325
__all__ = [
26+
"acreate_client",
27+
"AClient",
28+
"ASupabaseAuthClient",
29+
"ASupabaseStorageClient",
1430
"create_client",
1531
"Client",
1632
"SupabaseAuthClient",

supabase/client.py

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,38 @@
22
from postgrest import APIResponse as PostgrestAPIResponse
33
from storage3.utils import StorageException
44

5+
# Version
56
from .__version__ import __version__
7+
8+
# Async Client
9+
from ._async.auth_client import AsyncSupabaseAuthClient
10+
from ._async.client import AsyncClient
11+
from ._async.client import AsyncStorageClient as AsyncSupabaseStorageClient
12+
from ._async.client import create_client as create_async_client
13+
14+
# Sync Client
615
from ._sync.auth_client import SyncSupabaseAuthClient as SupabaseAuthClient
7-
from ._sync.client import ClientOptions
816
from ._sync.client import SyncClient as Client
917
from ._sync.client import SyncStorageClient as SupabaseStorageClient
1018
from ._sync.client import create_client
19+
20+
# Lib
21+
from .lib.client_options import ClientOptions
1122
from .lib.realtime_client import SupabaseRealtimeClient
1223

1324
__all__ = [
14-
"PostgrestAPIError",
15-
"PostgrestAPIResponse",
16-
"StorageException",
25+
"AsyncSupabaseAuthClient",
26+
"create_async_client",
27+
"AsyncClient",
28+
"AsyncSupabaseStorageClient",
1729
"SupabaseAuthClient",
18-
"__version__",
1930
"create_client",
2031
"Client",
2132
"ClientOptions",
2233
"SupabaseStorageClient",
2334
"SupabaseRealtimeClient",
35+
"PostgrestAPIError",
36+
"PostgrestAPIResponse",
37+
"StorageException",
38+
"__version__",
2439
]

0 commit comments

Comments
 (0)