supabase 2.30.1__tar.gz → 2.32.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: supabase
3
- Version: 2.30.1
3
+ Version: 2.32.0
4
4
  Summary: Supabase client for Python.
5
5
  Author: Joel Lee, Leon Fedden, Daniel Reinón García, Leynier Gutiérrez González, Anand, Andrew Smith
6
6
  Author-email: Joel Lee <joel@joellee.org>, Leon Fedden <leonfedden@gmail.com>, Daniel Reinón García <danielreinon@outlook.com>, Leynier Gutiérrez González <leynier41@gmail.com>, Andrew Smith <a.smith@silentworks.co.uk>
@@ -8,13 +8,14 @@ License-Expression: MIT
8
8
  License-File: LICENSE
9
9
  Classifier: Programming Language :: Python :: 3
10
10
  Classifier: Operating System :: OS Independent
11
- Requires-Dist: realtime==2.30.1
12
- Requires-Dist: supabase-functions==2.30.1
13
- Requires-Dist: storage3==2.30.1
14
- Requires-Dist: supabase-auth==2.30.1
15
- Requires-Dist: postgrest==2.30.1
11
+ Requires-Dist: realtime==2.32.0
12
+ Requires-Dist: supabase-functions==2.32.0
13
+ Requires-Dist: storage3==2.32.0
14
+ Requires-Dist: supabase-auth==2.32.0
15
+ Requires-Dist: postgrest==2.32.0
16
16
  Requires-Dist: httpx>=0.26,<0.29
17
17
  Requires-Dist: yarl>=1.22.0
18
+ Requires-Dist: storage3[iceberg]==2.32.0 ; extra == 'iceberg'
18
19
  Maintainer: Leonardo Santiago
19
20
  Maintainer-email: Leonardo Santiago <leonardo.santiago@supabase.io>
20
21
  Requires-Python: >=3.9
@@ -22,6 +23,7 @@ Project-URL: changelog, https://github.com/supabase/supabase-py/tree/main/CHANGE
22
23
  Project-URL: documentation, https://github.com/supabase/supabase-py/src/supabase
23
24
  Project-URL: homepage, https://github.com/supabase/supabase-py
24
25
  Project-URL: repository, https://github.com/supabase/supabase-py
26
+ Provides-Extra: iceberg
25
27
  Description-Content-Type: text/markdown
26
28
 
27
29
  # `supabase-py`
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "supabase"
3
- version = "2.30.1" # {x-release-please-version}
3
+ version = "2.32.0" # {x-release-please-version}
4
4
  description = "Supabase client for Python."
5
5
  authors = [
6
6
  { name = "Joel Lee", email = "joel@joellee.org" },
@@ -22,11 +22,11 @@ classifiers = [
22
22
  ]
23
23
  requires-python = ">=3.9"
24
24
  dependencies = [
25
- "realtime == 2.30.1", # x-release-please-version
26
- "supabase_functions == 2.30.1", # x-release-please-version
27
- "storage3 == 2.30.1", # x-release-please-version
28
- "supabase_auth == 2.30.1", # x-release-please-version
29
- "postgrest == 2.30.1", # x-release-please-version
25
+ "realtime == 2.32.0", # x-release-please-version
26
+ "supabase_functions == 2.32.0", # x-release-please-version
27
+ "storage3 == 2.32.0", # x-release-please-version
28
+ "supabase_auth == 2.32.0", # x-release-please-version
29
+ "postgrest == 2.32.0", # x-release-please-version
30
30
  "httpx >=0.26,<0.29",
31
31
  "yarl>=1.22.0",
32
32
  ]
@@ -37,6 +37,11 @@ repository = "https://github.com/supabase/supabase-py"
37
37
  documentation = "https://github.com/supabase/supabase-py/src/supabase"
38
38
  changelog = "https://github.com/supabase/supabase-py/tree/main/CHANGELOG.md"
39
39
 
40
+ [project.optional-dependencies]
41
+ iceberg = [
42
+ "storage3[iceberg] == 2.32.0", # x-release-please-version
43
+ ]
44
+
40
45
  [dependency-groups]
41
46
  dev = [
42
47
  { include-group = "tests" },
@@ -1,3 +1,4 @@
1
+ import platform
1
2
  from dataclasses import dataclass, field
2
3
  from typing import Dict, Optional, Union
3
4
 
@@ -19,7 +20,15 @@ from supabase.types import RealtimeClientOptions
19
20
 
20
21
  from ..version import __version__
21
22
 
22
- DEFAULT_HEADERS = {"X-Client-Info": f"supabase-py/{__version__}"}
23
+ DEFAULT_HEADERS = {
24
+ "X-Client-Info": (
25
+ f"supabase-py/{__version__}"
26
+ f"; platform={platform.system()}"
27
+ f"; platform-version={platform.release()}"
28
+ f"; runtime=python"
29
+ f"; runtime-version={platform.python_version()}"
30
+ )
31
+ }
23
32
 
24
33
 
25
34
  @dataclass
@@ -85,9 +94,13 @@ class AsyncClientOptions(ClientOptions):
85
94
  client_options.schema = schema or self.schema
86
95
  client_options.headers = headers or self.headers
87
96
  client_options.auto_refresh_token = (
88
- auto_refresh_token or self.auto_refresh_token
97
+ auto_refresh_token
98
+ if auto_refresh_token is not None
99
+ else self.auto_refresh_token
100
+ )
101
+ client_options.persist_session = (
102
+ persist_session if persist_session is not None else self.persist_session
89
103
  )
90
- client_options.persist_session = persist_session or self.persist_session
91
104
  client_options.storage = storage or self.storage
92
105
  client_options.realtime = realtime or self.realtime
93
106
  client_options.httpx_client = httpx_client or self.httpx_client
@@ -128,9 +141,13 @@ class SyncClientOptions(ClientOptions):
128
141
  client_options.schema = schema or self.schema
129
142
  client_options.headers = headers or self.headers
130
143
  client_options.auto_refresh_token = (
131
- auto_refresh_token or self.auto_refresh_token
144
+ auto_refresh_token
145
+ if auto_refresh_token is not None
146
+ else self.auto_refresh_token
147
+ )
148
+ client_options.persist_session = (
149
+ persist_session if persist_session is not None else self.persist_session
132
150
  )
133
- client_options.persist_session = persist_session or self.persist_session
134
151
  client_options.storage = storage or self.storage
135
152
  client_options.realtime = realtime or self.realtime
136
153
  client_options.httpx_client = httpx_client or self.httpx_client
@@ -0,0 +1 @@
1
+ __version__ = "2.32.0" # {x-release-please-version}
@@ -1 +0,0 @@
1
- __version__ = "2.30.1" # {x-release-please-version}
File without changes
File without changes