supabase_functions 0.3.3__tar.gz → 0.4.2__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.
- {supabase_functions-0.3.3 → supabase_functions-0.4.2}/PKG-INFO +5 -4
- {supabase_functions-0.3.3 → supabase_functions-0.4.2}/README.md +2 -2
- {supabase_functions-0.3.3 → supabase_functions-0.4.2}/pyproject.toml +7 -7
- {supabase_functions-0.3.3 → supabase_functions-0.4.2}/supabase_functions/_sync/functions_client.py +3 -6
- {supabase_functions-0.3.3 → supabase_functions-0.4.2}/supabase_functions/utils.py +1 -1
- {supabase_functions-0.3.3 → supabase_functions-0.4.2}/LICENSE +0 -0
- {supabase_functions-0.3.3 → supabase_functions-0.4.2}/supabase_functions/__init__.py +0 -0
- {supabase_functions-0.3.3 → supabase_functions-0.4.2}/supabase_functions/_async/__init__.py +0 -0
- {supabase_functions-0.3.3 → supabase_functions-0.4.2}/supabase_functions/_async/functions_client.py +0 -0
- {supabase_functions-0.3.3 → supabase_functions-0.4.2}/supabase_functions/_sync/__init__.py +0 -0
- {supabase_functions-0.3.3 → supabase_functions-0.4.2}/supabase_functions/errors.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: supabase_functions
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: Library for Supabase Functions
|
|
5
5
|
Home-page: https://github.com/supabase-community/functions-py
|
|
6
6
|
License: MIT
|
|
@@ -13,7 +13,8 @@ Classifier: Programming Language :: Python :: 3.8
|
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.9
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.10
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
-
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Requires-Dist: httpx (>=0.24,<0.28)
|
|
17
18
|
Project-URL: Repository, https://github.com/supabase-community/functions-py
|
|
18
19
|
Description-Content-Type: text/markdown
|
|
19
20
|
|
|
@@ -22,7 +23,7 @@ Description-Content-Type: text/markdown
|
|
|
22
23
|
|
|
23
24
|
## Installation
|
|
24
25
|
|
|
25
|
-
`pip3 install
|
|
26
|
+
`pip3 install supabase_functions`
|
|
26
27
|
|
|
27
28
|
## Usage
|
|
28
29
|
|
|
@@ -31,7 +32,7 @@ Deploy your function as per documentation.
|
|
|
31
32
|
|
|
32
33
|
```python3
|
|
33
34
|
import asyncio
|
|
34
|
-
from
|
|
35
|
+
from supabase_functions import AsyncFunctionsClient
|
|
35
36
|
async def run_func():
|
|
36
37
|
fc = AsyncFunctionsClient("https://<project_ref>.functions.supabase.co", {})
|
|
37
38
|
res = await fc.invoke("payment-sheet", {"responseType": "json"})
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
## Installation
|
|
5
5
|
|
|
6
|
-
`pip3 install
|
|
6
|
+
`pip3 install supabase_functions`
|
|
7
7
|
|
|
8
8
|
## Usage
|
|
9
9
|
|
|
@@ -12,7 +12,7 @@ Deploy your function as per documentation.
|
|
|
12
12
|
|
|
13
13
|
```python3
|
|
14
14
|
import asyncio
|
|
15
|
-
from
|
|
15
|
+
from supabase_functions import AsyncFunctionsClient
|
|
16
16
|
async def run_func():
|
|
17
17
|
fc = AsyncFunctionsClient("https://<project_ref>.functions.supabase.co", {})
|
|
18
18
|
res = await fc.invoke("payment-sheet", {"responseType": "json"})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "supabase_functions"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.4.2"
|
|
4
4
|
description = "Library for Supabase Functions"
|
|
5
5
|
authors = [
|
|
6
6
|
"Joel Lee <joel@joellee.org>",
|
|
@@ -12,22 +12,22 @@ repository = "https://github.com/supabase-community/functions-py"
|
|
|
12
12
|
|
|
13
13
|
[tool.poetry.dependencies]
|
|
14
14
|
python = "^3.8"
|
|
15
|
-
httpx = ">=0.24,<0.
|
|
15
|
+
httpx = ">=0.24,<0.28"
|
|
16
16
|
|
|
17
17
|
[tool.poetry.group.dev.dependencies]
|
|
18
|
-
python-semantic-release = "
|
|
19
|
-
black = "
|
|
18
|
+
python-semantic-release = ">=8.1.1,<10.0.0"
|
|
19
|
+
black = ">=23.9.1,<25.0.0"
|
|
20
20
|
isort = "^5.12.0"
|
|
21
21
|
pre-commit = "^3.4.0"
|
|
22
22
|
pyjwt = "^2.8.0"
|
|
23
|
-
pytest = "
|
|
23
|
+
pytest = ">=7.4.2,<9.0.0"
|
|
24
24
|
pytest-cov = "^4.0.0"
|
|
25
25
|
unasync-cli = "^0.0.9"
|
|
26
26
|
pytest-asyncio = ">=0.21.1,<0.24.0"
|
|
27
|
-
respx = "
|
|
27
|
+
respx = ">=0.20.2,<0.22.0"
|
|
28
28
|
|
|
29
29
|
[tool.semantic_release]
|
|
30
|
-
version_variables = ["
|
|
30
|
+
version_variables = ["supabase_functions/utils.py:__version__"]
|
|
31
31
|
version_toml = ["pyproject.toml:tool.poetry.version"]
|
|
32
32
|
major_on_zero = false
|
|
33
33
|
commit_message = "chore(release): bump version to v{version}"
|
{supabase_functions-0.3.3 → supabase_functions-0.4.2}/supabase_functions/_sync/functions_client.py
RENAMED
|
@@ -44,7 +44,9 @@ class SyncFunctionsClient:
|
|
|
44
44
|
|
|
45
45
|
self.headers["Authorization"] = f"Bearer {token}"
|
|
46
46
|
|
|
47
|
-
def invoke(
|
|
47
|
+
def invoke(
|
|
48
|
+
self, function_name: str, invoke_options: Optional[Dict] = None
|
|
49
|
+
) -> Union[Dict, bytes]:
|
|
48
50
|
"""Invokes a function
|
|
49
51
|
|
|
50
52
|
Parameters
|
|
@@ -54,11 +56,6 @@ class SyncFunctionsClient:
|
|
|
54
56
|
`headers`: object representing the headers to send with the request
|
|
55
57
|
`body`: the body of the request
|
|
56
58
|
`responseType`: how the response should be parsed. The default is `json`
|
|
57
|
-
|
|
58
|
-
Returns
|
|
59
|
-
-------
|
|
60
|
-
Dict
|
|
61
|
-
Dictionary with data
|
|
62
59
|
"""
|
|
63
60
|
headers = self.headers
|
|
64
61
|
if invoke_options is not None:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supabase_functions-0.3.3 → supabase_functions-0.4.2}/supabase_functions/_async/functions_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|