Skip to content

Commit 5ff3322

Browse files
committed
chore: deprecation changes
1 parent 2ec76b9 commit 5ff3322

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

README.md

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
1-
# Functions-py
1+
# ⚠️⚠️⚠️ Deprecation notice ⚠️⚠️⚠️
22

3+
The `supafunc` package name is deprecated and is not going to receive any more updates. Please, use `supabase_functions` instead.
34

4-
## Installation
5+
## How to switch
56

6-
`pip3 install supafunc`
7+
1. Use `uv add supabase_functions` instead of `uv add supafunc`.
8+
2. Replace `supafunc` with `supabase_functions` in your `requirements.txt`, `pyproject.toml`, `setup.py`, etc.
9+
3. Replace all imports `from supafunc import ...` to `from supabase_functions import ...`
10+
4. If `supafunc` is still used by one of your dependencies, consider reporting it in their issue tracker.
711

8-
## Usage
12+
## Reasoning
913

10-
Deploy your function as per documentation.
14+
The `supafunc` package has been replaced by the `supabase_functions` since December 14th, 2024, following the JavaScript implementation name switch. Changes and fixes were maintained for a couple of months by pushing them in both packages at the same time, using a patching script.
1115

12-
13-
```python3
14-
import asyncio
15-
from supafunc import AsyncFunctionsClient
16-
async def run_func():
17-
fc = AsyncFunctionsClient("https://<project_ref>.functions.supabase.co", {})
18-
res = await fc.invoke("payment-sheet", {"responseType": "json"})
19-
20-
if __name__ == "__main__":
21-
asyncio.run(run_func())
22-
```
16+
In order to simplify maintenance and development of new features, the `supafunc` package is going to cease receiving updates as of 7th of August 2025, and going forward everyone should use `supabase_functions` instead.

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ authors = [
99
license = "MIT"
1010
readme = "README.md"
1111
repository = "https://github.com/supabase/functions-py"
12+
classifiers = [
13+
"Development Status :: 7 - Inactive",
14+
]
1215

1316
[tool.poetry.dependencies]
1417
python = "^3.9"

supafunc/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
from __future__ import annotations
2+
import warnings
3+
4+
warnings.warn('The `supafunc` package is deprecated, is not going to receive updates in the future. Please, use `supabase_functions` instead.', DeprecationWarning, stacklevel=2)
25

36
from typing import Literal, Union, overload
47

0 commit comments

Comments
 (0)