Skip to content

Commit 7a6199e

Browse files
authored
fix: update exports from init file (#928)
1 parent bf252a2 commit 7a6199e

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

Diff for: supabase/__init__.py

+33-2
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,66 @@
1+
from gotrue.errors import (
2+
AuthApiError,
3+
AuthError,
4+
AuthImplicitGrantRedirectError,
5+
AuthInvalidCredentialsError,
6+
AuthRetryableError,
7+
AuthSessionMissingError,
8+
AuthUnknownError,
9+
AuthWeakPasswordError,
10+
)
111
from postgrest import APIError as PostgrestAPIError
212
from postgrest import APIResponse as PostgrestAPIResponse
13+
from realtime import AuthorizationError, NotConnectedError
314
from storage3.utils import StorageException
15+
from supafunc.errors import FunctionsError, FunctionsHttpError, FunctionsRelayError
416

517
# Async Client
618
from ._async.auth_client import AsyncSupabaseAuthClient as ASupabaseAuthClient
719
from ._async.client import AsyncClient as AClient
820
from ._async.client import AsyncStorageClient as ASupabaseStorageClient
921
from ._async.client import ClientOptions as AClientOptions
1022
from ._async.client import create_client as acreate_client
23+
from ._async.client import create_client as create_async_client
1124

1225
# Sync Client
1326
from ._sync.auth_client import SyncSupabaseAuthClient as SupabaseAuthClient
14-
from ._sync.client import ClientOptions
1527
from ._sync.client import SyncClient as Client
1628
from ._sync.client import SyncStorageClient as SupabaseStorageClient
1729
from ._sync.client import create_client
1830

31+
# Lib
32+
from .lib.client_options import ClientOptions
33+
1934
# Version
2035
from .version import __version__
2136

2237
__all__ = [
2338
"acreate_client",
39+
"create_async_client",
2440
"AClient",
2541
"ASupabaseAuthClient",
2642
"ASupabaseStorageClient",
43+
"AClientOptions",
2744
"create_client",
2845
"Client",
2946
"SupabaseAuthClient",
3047
"SupabaseStorageClient",
48+
"ClientOptions",
3149
"PostgrestAPIError",
3250
"PostgrestAPIResponse",
3351
"StorageException",
34-
"version",
52+
"__version__",
53+
"AuthApiError",
54+
"AuthError",
55+
"AuthImplicitGrantRedirectError",
56+
"AuthInvalidCredentialsError",
57+
"AuthRetryableError",
58+
"AuthSessionMissingError",
59+
"AuthWeakPasswordError",
60+
"AuthUnknownError",
61+
"FunctionsHttpError",
62+
"FunctionsRelayError",
63+
"FunctionsError",
64+
"AuthorizationError",
65+
"NotConnectedError",
3566
]

0 commit comments

Comments
 (0)