supabase_auth 2.8.1__tar.gz → 2.9.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. {supabase_auth-2.8.1 → supabase_auth-2.9.0}/PKG-INFO +1 -1
  2. {supabase_auth-2.8.1 → supabase_auth-2.9.0}/pyproject.toml +3 -3
  3. {supabase_auth-2.8.1 → supabase_auth-2.9.0}/supabase_auth/_async/gotrue_admin_api.py +3 -1
  4. {supabase_auth-2.8.1 → supabase_auth-2.9.0}/supabase_auth/_async/gotrue_base_api.py +3 -1
  5. {supabase_auth-2.8.1 → supabase_auth-2.9.0}/supabase_auth/_async/gotrue_client.py +3 -1
  6. {supabase_auth-2.8.1 → supabase_auth-2.9.0}/supabase_auth/_sync/api.py +2 -0
  7. {supabase_auth-2.8.1 → supabase_auth-2.9.0}/supabase_auth/_sync/client.py +4 -0
  8. {supabase_auth-2.8.1 → supabase_auth-2.9.0}/supabase_auth/_sync/gotrue_admin_api.py +3 -1
  9. {supabase_auth-2.8.1 → supabase_auth-2.9.0}/supabase_auth/_sync/gotrue_base_api.py +3 -1
  10. {supabase_auth-2.8.1 → supabase_auth-2.9.0}/supabase_auth/_sync/gotrue_client.py +3 -1
  11. supabase_auth-2.9.0/supabase_auth/version.py +1 -0
  12. supabase_auth-2.8.1/supabase_auth/version.py +0 -1
  13. {supabase_auth-2.8.1 → supabase_auth-2.9.0}/LICENSE +0 -0
  14. {supabase_auth-2.8.1 → supabase_auth-2.9.0}/README.md +0 -0
  15. {supabase_auth-2.8.1 → supabase_auth-2.9.0}/supabase_auth/__init__.py +0 -0
  16. {supabase_auth-2.8.1 → supabase_auth-2.9.0}/supabase_auth/_async/__init__.py +0 -0
  17. {supabase_auth-2.8.1 → supabase_auth-2.9.0}/supabase_auth/_async/gotrue_admin_mfa_api.py +0 -0
  18. {supabase_auth-2.8.1 → supabase_auth-2.9.0}/supabase_auth/_async/gotrue_mfa_api.py +0 -0
  19. {supabase_auth-2.8.1 → supabase_auth-2.9.0}/supabase_auth/_async/storage.py +0 -0
  20. {supabase_auth-2.8.1 → supabase_auth-2.9.0}/supabase_auth/_sync/__init__.py +0 -0
  21. {supabase_auth-2.8.1 → supabase_auth-2.9.0}/supabase_auth/_sync/gotrue_admin_mfa_api.py +0 -0
  22. {supabase_auth-2.8.1 → supabase_auth-2.9.0}/supabase_auth/_sync/gotrue_mfa_api.py +0 -0
  23. {supabase_auth-2.8.1 → supabase_auth-2.9.0}/supabase_auth/_sync/storage.py +0 -0
  24. {supabase_auth-2.8.1 → supabase_auth-2.9.0}/supabase_auth/constants.py +0 -0
  25. {supabase_auth-2.8.1 → supabase_auth-2.9.0}/supabase_auth/errors.py +0 -0
  26. {supabase_auth-2.8.1 → supabase_auth-2.9.0}/supabase_auth/helpers.py +0 -0
  27. {supabase_auth-2.8.1 → supabase_auth-2.9.0}/supabase_auth/http_clients.py +0 -0
  28. {supabase_auth-2.8.1 → supabase_auth-2.9.0}/supabase_auth/timer.py +0 -0
  29. {supabase_auth-2.8.1 → supabase_auth-2.9.0}/supabase_auth/types.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: supabase_auth
3
- Version: 2.8.1
3
+ Version: 2.9.0
4
4
  Summary: Python Client Library for Supabase Auth
5
5
  Home-page: https://github.com/supabase/auth-py
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "supabase_auth"
3
- version = "2.8.1" # {x-release-please-version}
3
+ version = "2.9.0" # {x-release-please-version}
4
4
  description = "Python Client Library for Supabase Auth"
5
5
  authors = ["Joel Lee <joel@joellee.org>"]
6
6
  homepage = "https://github.com/supabase/auth-py"
@@ -20,7 +20,7 @@ httpx = {version = ">=0.24,<0.28", extras = ["http2"]}
20
20
  pydantic = ">=1.10,<3"
21
21
 
22
22
  [tool.poetry.dev-dependencies]
23
- pytest = "^8.3.2"
23
+ pytest = "^8.3.3"
24
24
  flake8 = "^5.0.4"
25
25
  black = "^24.4.2"
26
26
  isort = "^5.12.0"
@@ -28,7 +28,7 @@ pre-commit = "^3.4.0"
28
28
  pytest-cov = "^5.0.0"
29
29
  pytest-depends = "^1.0.1"
30
30
  pytest-asyncio = "^0.24.0"
31
- Faker = "^28.4.1"
31
+ Faker = "^30.0.0"
32
32
  unasync-cli = "^0.0.9"
33
33
 
34
34
  [tool.poetry.group.dev.dependencies]
@@ -1,7 +1,7 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  from functools import partial
4
- from typing import Dict, List, Union
4
+ from typing import Dict, List, Optional, Union
5
5
 
6
6
  from ..helpers import model_validate, parse_link_response, parse_user_response
7
7
  from ..http_clients import AsyncClient
@@ -30,6 +30,7 @@ class AsyncGoTrueAdminAPI(AsyncGoTrueBaseAPI):
30
30
  headers: Dict[str, str] = {},
31
31
  http_client: Union[AsyncClient, None] = None,
32
32
  verify: bool = True,
33
+ proxy: Optional[str] = None,
33
34
  ) -> None:
34
35
  AsyncGoTrueBaseAPI.__init__(
35
36
  self,
@@ -37,6 +38,7 @@ class AsyncGoTrueAdminAPI(AsyncGoTrueBaseAPI):
37
38
  headers=headers,
38
39
  http_client=http_client,
39
40
  verify=verify,
41
+ proxy=proxy,
40
42
  )
41
43
  self.mfa = AsyncGoTrueAdminMFAAPI()
42
44
  self.mfa.list_factors = self._list_factors
@@ -1,6 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
- from typing import Any, Callable, Dict, TypeVar, Union, overload
3
+ from typing import Any, Callable, Dict, Optional, TypeVar, Union, overload
4
4
 
5
5
  from httpx import Response
6
6
  from pydantic import BaseModel
@@ -21,11 +21,13 @@ class AsyncGoTrueBaseAPI:
21
21
  headers: Dict[str, str],
22
22
  http_client: Union[AsyncClient, None],
23
23
  verify: bool = True,
24
+ proxy: Optional[str] = None,
24
25
  ):
25
26
  self._url = url
26
27
  self._headers = headers
27
28
  self._http_client = http_client or AsyncClient(
28
29
  verify=bool(verify),
30
+ proxy=proxy,
29
31
  follow_redirects=True,
30
32
  http2=True,
31
33
  )
@@ -4,7 +4,7 @@ from contextlib import suppress
4
4
  from functools import partial
5
5
  from json import loads
6
6
  from time import time
7
- from typing import Callable, Dict, List, Tuple, Union
7
+ from typing import Callable, Dict, List, Optional, Tuple, Union
8
8
  from urllib.parse import parse_qs, urlencode, urlparse
9
9
  from uuid import uuid4
10
10
 
@@ -96,6 +96,7 @@ class AsyncGoTrueClient(AsyncGoTrueBaseAPI):
96
96
  http_client: Union[AsyncClient, None] = None,
97
97
  flow_type: AuthFlowType = "implicit",
98
98
  verify: bool = True,
99
+ proxy: Optional[str] = None,
99
100
  ) -> None:
100
101
  AsyncGoTrueBaseAPI.__init__(
101
102
  self,
@@ -103,6 +104,7 @@ class AsyncGoTrueClient(AsyncGoTrueBaseAPI):
103
104
  headers=headers or DEFAULT_HEADERS,
104
105
  http_client=http_client,
105
106
  verify=verify,
107
+ proxy=proxy,
106
108
  )
107
109
  self._storage_key = storage_key or STORAGE_KEY
108
110
  self._auto_refresh_token = auto_refresh_token
@@ -27,6 +27,7 @@ class SyncGoTrueAPI:
27
27
  cookie_options: CookieOptions,
28
28
  http_client: Optional[SyncClient] = None,
29
29
  verify: bool = True,
30
+ proxy: Optional[str] = None,
30
31
  ) -> None:
31
32
  """Initialise API class."""
32
33
  self.url = url
@@ -34,6 +35,7 @@ class SyncGoTrueAPI:
34
35
  self.cookie_options = cookie_options
35
36
  self.http_client = http_client or SyncClient(
36
37
  verify=bool(verify),
38
+ proxy=proxy,
37
39
  follow_redirects=True,
38
40
  http2=True,
39
41
  )
@@ -38,6 +38,7 @@ class SyncGoTrueClient:
38
38
  api: Optional[SyncGoTrueAPI] = None,
39
39
  replace_default_headers: bool = False,
40
40
  verify: bool = True,
41
+ proxy: Optional[str] = None,
41
42
  ) -> None:
42
43
  """Create a new client
43
44
 
@@ -57,6 +58,8 @@ class SyncGoTrueClient:
57
58
  The options for the cookie.
58
59
  verify: bool
59
60
  Verify SSL, True by default, False disables verification.
61
+ proxy: str
62
+ HTTP Proxy string or None, None by default, None disables proxy.
60
63
  """
61
64
  if url.startswith("http://"):
62
65
  print(
@@ -76,6 +79,7 @@ class SyncGoTrueClient:
76
79
  "headers": {**empty_or_default_headers, **headers},
77
80
  "cookie_options": cookie_options,
78
81
  "verify": verify,
82
+ "proxy": proxy,
79
83
  }
80
84
  self.api = api or SyncGoTrueAPI(**args)
81
85
 
@@ -1,7 +1,7 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  from functools import partial
4
- from typing import Dict, List, Union
4
+ from typing import Dict, List, Optional, Union
5
5
 
6
6
  from ..helpers import model_validate, parse_link_response, parse_user_response
7
7
  from ..http_clients import SyncClient
@@ -30,6 +30,7 @@ class SyncGoTrueAdminAPI(SyncGoTrueBaseAPI):
30
30
  headers: Dict[str, str] = {},
31
31
  http_client: Union[SyncClient, None] = None,
32
32
  verify: bool = True,
33
+ proxy: Optional[str] = None,
33
34
  ) -> None:
34
35
  SyncGoTrueBaseAPI.__init__(
35
36
  self,
@@ -37,6 +38,7 @@ class SyncGoTrueAdminAPI(SyncGoTrueBaseAPI):
37
38
  headers=headers,
38
39
  http_client=http_client,
39
40
  verify=verify,
41
+ proxy=proxy,
40
42
  )
41
43
  self.mfa = SyncGoTrueAdminMFAAPI()
42
44
  self.mfa.list_factors = self._list_factors
@@ -1,6 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
- from typing import Any, Callable, Dict, TypeVar, Union, overload
3
+ from typing import Any, Callable, Dict, Optional, TypeVar, Union, overload
4
4
 
5
5
  from httpx import Response
6
6
  from pydantic import BaseModel
@@ -21,11 +21,13 @@ class SyncGoTrueBaseAPI:
21
21
  headers: Dict[str, str],
22
22
  http_client: Union[SyncClient, None],
23
23
  verify: bool = True,
24
+ proxy: Optional[str] = None,
24
25
  ):
25
26
  self._url = url
26
27
  self._headers = headers
27
28
  self._http_client = http_client or SyncClient(
28
29
  verify=bool(verify),
30
+ proxy=proxy,
29
31
  follow_redirects=True,
30
32
  http2=True,
31
33
  )
@@ -4,7 +4,7 @@ from contextlib import suppress
4
4
  from functools import partial
5
5
  from json import loads
6
6
  from time import time
7
- from typing import Callable, Dict, List, Tuple, Union
7
+ from typing import Callable, Dict, List, Optional, Tuple, Union
8
8
  from urllib.parse import parse_qs, urlencode, urlparse
9
9
  from uuid import uuid4
10
10
 
@@ -96,6 +96,7 @@ class SyncGoTrueClient(SyncGoTrueBaseAPI):
96
96
  http_client: Union[SyncClient, None] = None,
97
97
  flow_type: AuthFlowType = "implicit",
98
98
  verify: bool = True,
99
+ proxy: Optional[str] = None,
99
100
  ) -> None:
100
101
  SyncGoTrueBaseAPI.__init__(
101
102
  self,
@@ -103,6 +104,7 @@ class SyncGoTrueClient(SyncGoTrueBaseAPI):
103
104
  headers=headers or DEFAULT_HEADERS,
104
105
  http_client=http_client,
105
106
  verify=verify,
107
+ proxy=proxy,
106
108
  )
107
109
  self._storage_key = storage_key or STORAGE_KEY
108
110
  self._auto_refresh_token = auto_refresh_token
@@ -0,0 +1 @@
1
+ __version__ = "2.9.0" # {x-release-please-version}
@@ -1 +0,0 @@
1
- __version__ = "2.8.1" # {x-release-please-version}
File without changes
File without changes