supabase_auth 2.23.2__tar.gz → 2.24.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.23.2 → supabase_auth-2.24.0}/PKG-INFO +1 -1
  2. {supabase_auth-2.23.2 → supabase_auth-2.24.0}/pyproject.toml +1 -24
  3. {supabase_auth-2.23.2 → supabase_auth-2.24.0}/src/supabase_auth/_async/gotrue_admin_api.py +1 -2
  4. {supabase_auth-2.23.2 → supabase_auth-2.24.0}/src/supabase_auth/_async/gotrue_base_api.py +1 -2
  5. {supabase_auth-2.23.2 → supabase_auth-2.24.0}/src/supabase_auth/_async/gotrue_client.py +1 -2
  6. {supabase_auth-2.23.2 → supabase_auth-2.24.0}/src/supabase_auth/_sync/gotrue_admin_api.py +2 -3
  7. {supabase_auth-2.23.2 → supabase_auth-2.24.0}/src/supabase_auth/_sync/gotrue_base_api.py +4 -5
  8. {supabase_auth-2.23.2 → supabase_auth-2.24.0}/src/supabase_auth/_sync/gotrue_client.py +2 -3
  9. supabase_auth-2.24.0/src/supabase_auth/version.py +1 -0
  10. supabase_auth-2.23.2/src/supabase_auth/http_clients.py +0 -9
  11. supabase_auth-2.23.2/src/supabase_auth/version.py +0 -1
  12. {supabase_auth-2.23.2 → supabase_auth-2.24.0}/README.md +0 -0
  13. {supabase_auth-2.23.2 → supabase_auth-2.24.0}/src/supabase_auth/__init__.py +0 -0
  14. {supabase_auth-2.23.2 → supabase_auth-2.24.0}/src/supabase_auth/_async/__init__.py +0 -0
  15. {supabase_auth-2.23.2 → supabase_auth-2.24.0}/src/supabase_auth/_async/gotrue_admin_mfa_api.py +0 -0
  16. {supabase_auth-2.23.2 → supabase_auth-2.24.0}/src/supabase_auth/_async/gotrue_admin_oauth_api.py +0 -0
  17. {supabase_auth-2.23.2 → supabase_auth-2.24.0}/src/supabase_auth/_async/gotrue_mfa_api.py +0 -0
  18. {supabase_auth-2.23.2 → supabase_auth-2.24.0}/src/supabase_auth/_async/storage.py +0 -0
  19. {supabase_auth-2.23.2 → supabase_auth-2.24.0}/src/supabase_auth/_sync/__init__.py +0 -0
  20. {supabase_auth-2.23.2 → supabase_auth-2.24.0}/src/supabase_auth/_sync/gotrue_admin_mfa_api.py +0 -0
  21. {supabase_auth-2.23.2 → supabase_auth-2.24.0}/src/supabase_auth/_sync/gotrue_admin_oauth_api.py +0 -0
  22. {supabase_auth-2.23.2 → supabase_auth-2.24.0}/src/supabase_auth/_sync/gotrue_mfa_api.py +0 -0
  23. {supabase_auth-2.23.2 → supabase_auth-2.24.0}/src/supabase_auth/_sync/storage.py +0 -0
  24. {supabase_auth-2.23.2 → supabase_auth-2.24.0}/src/supabase_auth/constants.py +0 -0
  25. {supabase_auth-2.23.2 → supabase_auth-2.24.0}/src/supabase_auth/errors.py +0 -0
  26. {supabase_auth-2.23.2 → supabase_auth-2.24.0}/src/supabase_auth/helpers.py +0 -0
  27. {supabase_auth-2.23.2 → supabase_auth-2.24.0}/src/supabase_auth/py.typed +0 -0
  28. {supabase_auth-2.23.2 → supabase_auth-2.24.0}/src/supabase_auth/timer.py +0 -0
  29. {supabase_auth-2.23.2 → supabase_auth-2.24.0}/src/supabase_auth/types.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: supabase-auth
3
- Version: 2.23.2
3
+ Version: 2.24.0
4
4
  Summary: Python Client Library for Supabase Auth
5
5
  Author: Joel Lee
6
6
  Author-email: Joel Lee <joel@joellee.org>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "supabase_auth"
3
- version = "2.23.2" # {x-release-please-version}
3
+ version = "2.24.0" # {x-release-please-version}
4
4
  description = "Python Client Library for Supabase Auth"
5
5
  authors = [
6
6
  {name = "Joel Lee", email = "joel@joellee.org" }
@@ -50,29 +50,6 @@ lints = [
50
50
  ]
51
51
  dev = [{ include-group = "lints" }, {include-group = "tests" }]
52
52
 
53
- [tool.ruff.lint]
54
- select = [
55
- # pycodestyle
56
- "E",
57
- # Pyflakes
58
- "F",
59
- # pyupgrade
60
- "UP",
61
- # flake8-bugbear
62
- "B",
63
- # flake8-simplify
64
- # "SIM",
65
- # isort
66
- "I",
67
- "ANN2"
68
- ]
69
- ignore = ["F403", "E501", "E402", "UP006", "UP035"]
70
-
71
- [tool.ruff.lint.pyupgrade]
72
- # Preserve types, even if a file imports `from __future__ import annotations`.
73
- keep-runtime-typing = true
74
-
75
-
76
53
  [tool.pytest.ini_options]
77
54
  asyncio_mode = "auto"
78
55
 
@@ -2,7 +2,7 @@ from __future__ import annotations
2
2
 
3
3
  from typing import Dict, List, Optional
4
4
 
5
- from httpx import QueryParams
5
+ from httpx import AsyncClient, QueryParams
6
6
 
7
7
  from ..helpers import (
8
8
  model_validate,
@@ -10,7 +10,6 @@ from ..helpers import (
10
10
  parse_user_response,
11
11
  validate_uuid,
12
12
  )
13
- from ..http_clients import AsyncClient
14
13
  from ..types import (
15
14
  AdminUserAttributes,
16
15
  AuthMFAAdminDeleteFactorParams,
@@ -2,13 +2,12 @@ from __future__ import annotations
2
2
 
3
3
  from typing import Any, Dict, Optional
4
4
 
5
- from httpx import HTTPStatusError, QueryParams, Response
5
+ from httpx import AsyncClient, HTTPStatusError, QueryParams, Response
6
6
  from pydantic import BaseModel
7
7
  from typing_extensions import Literal, Self
8
8
 
9
9
  from ..constants import API_VERSION_HEADER_NAME, API_VERSIONS_2024_01_01_NAME
10
10
  from ..helpers import handle_exception, model_dump
11
- from ..http_clients import AsyncClient
12
11
 
13
12
 
14
13
  class AsyncGoTrueBaseAPI:
@@ -6,7 +6,7 @@ from typing import Callable, Dict, List, Optional, Tuple
6
6
  from urllib.parse import parse_qs, urlparse
7
7
  from uuid import uuid4
8
8
 
9
- from httpx import QueryParams, Response
9
+ from httpx import AsyncClient, QueryParams, Response
10
10
  from jwt import get_algorithm_by_name
11
11
  from typing_extensions import cast
12
12
 
@@ -41,7 +41,6 @@ from ..helpers import (
41
41
  parse_user_response,
42
42
  validate_exp,
43
43
  )
44
- from ..http_clients import AsyncClient
45
44
  from ..timer import Timer
46
45
  from ..types import (
47
46
  JWK,
@@ -2,7 +2,7 @@ from __future__ import annotations
2
2
 
3
3
  from typing import Dict, List, Optional
4
4
 
5
- from httpx import QueryParams
5
+ from httpx import Client, QueryParams
6
6
 
7
7
  from ..helpers import (
8
8
  model_validate,
@@ -10,7 +10,6 @@ from ..helpers import (
10
10
  parse_user_response,
11
11
  validate_uuid,
12
12
  )
13
- from ..http_clients import SyncClient
14
13
  from ..types import (
15
14
  AdminUserAttributes,
16
15
  AuthMFAAdminDeleteFactorParams,
@@ -42,7 +41,7 @@ class SyncGoTrueAdminAPI(SyncGoTrueBaseAPI):
42
41
  *,
43
42
  url: str = "",
44
43
  headers: Optional[Dict[str, str]] = None,
45
- http_client: Optional[SyncClient] = None,
44
+ http_client: Optional[Client] = None,
46
45
  verify: bool = True,
47
46
  proxy: Optional[str] = None,
48
47
  ) -> None:
@@ -2,13 +2,12 @@ from __future__ import annotations
2
2
 
3
3
  from typing import Any, Dict, Optional
4
4
 
5
- from httpx import HTTPStatusError, QueryParams, Response
5
+ from httpx import Client, HTTPStatusError, QueryParams, Response
6
6
  from pydantic import BaseModel
7
7
  from typing_extensions import Literal, Self
8
8
 
9
9
  from ..constants import API_VERSION_HEADER_NAME, API_VERSIONS_2024_01_01_NAME
10
10
  from ..helpers import handle_exception, model_dump
11
- from ..http_clients import SyncClient
12
11
 
13
12
 
14
13
  class SyncGoTrueBaseAPI:
@@ -17,13 +16,13 @@ class SyncGoTrueBaseAPI:
17
16
  *,
18
17
  url: str,
19
18
  headers: Dict[str, str],
20
- http_client: Optional[SyncClient],
19
+ http_client: Optional[Client],
21
20
  verify: bool = True,
22
21
  proxy: Optional[str] = None,
23
22
  ) -> None:
24
23
  self._url = url
25
24
  self._headers = headers
26
- self._http_client = http_client or SyncClient(
25
+ self._http_client = http_client or Client(
27
26
  verify=bool(verify),
28
27
  proxy=proxy,
29
28
  follow_redirects=True,
@@ -37,7 +36,7 @@ class SyncGoTrueBaseAPI:
37
36
  self.close()
38
37
 
39
38
  def close(self) -> None:
40
- self._http_client.aclose()
39
+ self._http_client.close()
41
40
 
42
41
  def _request(
43
42
  self,
@@ -6,7 +6,7 @@ from typing import Callable, Dict, List, Optional, Tuple
6
6
  from urllib.parse import parse_qs, urlparse
7
7
  from uuid import uuid4
8
8
 
9
- from httpx import QueryParams, Response
9
+ from httpx import Client, QueryParams, Response
10
10
  from jwt import get_algorithm_by_name
11
11
  from typing_extensions import cast
12
12
 
@@ -41,7 +41,6 @@ from ..helpers import (
41
41
  parse_user_response,
42
42
  validate_exp,
43
43
  )
44
- from ..http_clients import SyncClient
45
44
  from ..timer import Timer
46
45
  from ..types import (
47
46
  JWK,
@@ -106,7 +105,7 @@ class SyncGoTrueClient(SyncGoTrueBaseAPI):
106
105
  auto_refresh_token: bool = True,
107
106
  persist_session: bool = True,
108
107
  storage: Optional[SyncSupportedStorage] = None,
109
- http_client: Optional[SyncClient] = None,
108
+ http_client: Optional[Client] = None,
110
109
  flow_type: AuthFlowType = "implicit",
111
110
  verify: bool = True,
112
111
  proxy: Optional[str] = None,
@@ -0,0 +1 @@
1
+ __version__ = "2.24.0" # {x-release-please-version}
@@ -1,9 +0,0 @@
1
- from __future__ import annotations
2
-
3
- from httpx import AsyncClient # noqa: F401
4
- from httpx import Client as BaseClient
5
-
6
-
7
- class SyncClient(BaseClient):
8
- def aclose(self) -> None:
9
- self.close()
@@ -1 +0,0 @@
1
- __version__ = "2.23.2" # {x-release-please-version}
File without changes