Skip to content

Commit

Permalink
fix: update exports from init file (#928)
Browse files Browse the repository at this point in the history
  • Loading branch information
silentworks authored Sep 20, 2024
1 parent bf252a2 commit 7a6199e
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions supabase/__init__.py
Original file line number Diff line number Diff line change
@@ -1,35 +1,66 @@
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
from ._async.client import AsyncClient as AClient
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",
]

0 comments on commit 7a6199e

Please sign in to comment.