From 7a6199e1c532fc46662d0b33b166b6db3456fec5 Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Fri, 20 Sep 2024 10:28:07 +0000 Subject: [PATCH] fix: update exports from init file (#928) --- supabase/__init__.py | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/supabase/__init__.py b/supabase/__init__.py index e8b4e519..77517668 100644 --- a/supabase/__init__.py +++ b/supabase/__init__.py @@ -1,6 +1,18 @@ +from gotrue.errors import ( + AuthApiError, + AuthError, + AuthImplicitGrantRedirectError, + AuthInvalidCredentialsError, + AuthRetryableError, + AuthSessionMissingError, + AuthUnknownError, + AuthWeakPasswordError, +) from postgrest import APIError as PostgrestAPIError from postgrest import APIResponse as PostgrestAPIResponse +from realtime import AuthorizationError, NotConnectedError from storage3.utils import StorageException +from supafunc.errors import FunctionsError, FunctionsHttpError, FunctionsRelayError # Async Client from ._async.auth_client import AsyncSupabaseAuthClient as ASupabaseAuthClient @@ -8,28 +20,47 @@ from ._async.client import AsyncStorageClient as ASupabaseStorageClient from ._async.client import ClientOptions as AClientOptions from ._async.client import create_client as acreate_client +from ._async.client import create_client as create_async_client # Sync Client from ._sync.auth_client import SyncSupabaseAuthClient as SupabaseAuthClient -from ._sync.client import ClientOptions from ._sync.client import SyncClient as Client from ._sync.client import SyncStorageClient as SupabaseStorageClient from ._sync.client import create_client +# Lib +from .lib.client_options import ClientOptions + # Version from .version import __version__ __all__ = [ "acreate_client", + "create_async_client", "AClient", "ASupabaseAuthClient", "ASupabaseStorageClient", + "AClientOptions", "create_client", "Client", "SupabaseAuthClient", "SupabaseStorageClient", + "ClientOptions", "PostgrestAPIError", "PostgrestAPIResponse", "StorageException", - "version", + "__version__", + "AuthApiError", + "AuthError", + "AuthImplicitGrantRedirectError", + "AuthInvalidCredentialsError", + "AuthRetryableError", + "AuthSessionMissingError", + "AuthWeakPasswordError", + "AuthUnknownError", + "FunctionsHttpError", + "FunctionsRelayError", + "FunctionsError", + "AuthorizationError", + "NotConnectedError", ]