Skip to content

Commit 0e9334e

Browse files
authored
Merge branch 'develop' into j0_add_magic
2 parents 8fc1a69 + f6f893c commit 0e9334e

18 files changed

+821
-1156
lines changed

Diff for: .github/workflows/ci.yml

+21-16
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,27 @@ jobs:
88
strategy:
99
matrix:
1010
os: [ubuntu-latest]
11-
python-version: [3.7, 3.8, 3.9, '3.10']
11+
python-version: [3.7, 3.8, 3.9, "3.10"]
1212
runs-on: ${{ matrix.os }}
1313
steps:
14-
- name: Clone Repository
15-
uses: actions/checkout@v2
16-
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v2
18-
with:
19-
python-version: ${{ matrix.python-version }}
20-
- name: Set up Poetry
21-
uses: abatilo/[email protected]
22-
with:
23-
poetry-version: 1.1.12
24-
- name: Run Tests
25-
run: make run_tests
26-
- name: Upload Coverage
27-
uses: codecov/codecov-action@v1
14+
- name: Clone Repository
15+
uses: actions/checkout@v2
16+
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
22+
- name: Set up Poetry
23+
uses: abatilo/[email protected]
24+
with:
25+
poetry-version: 1.2.0b1
26+
27+
- name: Run Tests
28+
run: make run_tests
29+
30+
- name: Upload Coverage
31+
uses: codecov/codecov-action@v1
2832

2933
publish:
3034
needs: test
@@ -37,8 +41,9 @@ jobs:
3741
with:
3842
ref: ${{ github.ref }}
3943
fetch-depth: 0
44+
4045
- name: Python Semantic Release
41-
uses: relekang/python-semantic-release@master
46+
uses: relekang/python-semantic-release@v7.28.1
4247
with:
4348
github_token: ${{ secrets.GITHUB_TOKEN }}
4449
repository_username: __token__

Diff for: .pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ repos:
3434
"--ignore-init-module-imports",
3535
]
3636

37-
- repo: https://github.com/ambv/black
38-
rev: 21.12b0
37+
- repo: https://github.com/psf/black
38+
rev: "22.3.0"
3939
hooks:
4040
- id: black
4141

Diff for: CHANGELOG.md

+45
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,51 @@
22

33
<!--next-version-placeholder-->
44

5+
## v0.6.0 (2022-10-07)
6+
### Feature
7+
* Setting timeout for postgrest-py client. Closes #225 ([`258ddf1`](https://github.com/supabase-community/supabase-py/commit/258ddf12e2c5df8b30175c7a295934bc0f78133d))
8+
* Setting timeout for postgrest-py client. Closes #225 ([`709ad8d`](https://github.com/supabase-community/supabase-py/commit/709ad8dd12f5654ba44c34b5a03e9d0c191a09e3))
9+
* Setting timeout for postgrest-py client. Closes #225 ([`4769dc4`](https://github.com/supabase-community/supabase-py/commit/4769dc4aa8fef866e1173cd3d1e39923ba0aadd6))
10+
* Setting timeout for postgrest-py client. Closes #225 ([`a910474`](https://github.com/supabase-community/supabase-py/commit/a910474b6827f1e9dbf9f0dd5f127788ca6da29d))
11+
* Added timeout to options ([#225](https://github.com/supabase-community/supabase-py/issues/225)) ([`136ce25`](https://github.com/supabase-community/supabase-py/commit/136ce2576c859cf87175778e1569e073bb67aa63))
12+
* Added timeout to options ([`069ada2`](https://github.com/supabase-community/supabase-py/commit/069ada2f14c44e96f20e60c31ad1fdb8d9beb9e4))
13+
* Setting timeout for postgrest-py client ([#225](https://github.com/supabase-community/supabase-py/issues/225)) ([`de5aba3`](https://github.com/supabase-community/supabase-py/commit/de5aba359ad21fd35f4e222f4693913b9777618e))
14+
15+
**[See all commits in this version](https://github.com/supabase-community/supabase-py/compare/v0.5.8...v0.6.0)**
16+
17+
## v0.5.8 (2022-06-27)
18+
### Fix
19+
* Downgrade python-semantic-release, fix end of file at README and force latest storage version ([`9c4bfba`](https://github.com/supabase-community/supabase-py/commit/9c4bfbab5539fbe242bbb728e7ad03037a79563a))
20+
21+
**[See all commits in this version](https://github.com/supabase-community/supabase-py/compare/v0.5.7...v0.5.8)**
22+
23+
## v0.5.7 (2022-06-08)
24+
### Fix
25+
* Lock python-semantic-release version ([`0a81c6f`](https://github.com/supabase-community/supabase-py/commit/0a81c6f84877b1c0d13a8214493f21a3afded4ba))
26+
* Force release ([`cfa5a55`](https://github.com/supabase-community/supabase-py/commit/cfa5a5533afcc500be787e2e4fa1de78dce5aaa5))
27+
* Pass schema to postgrest init ([`912a442`](https://github.com/supabase-community/supabase-py/commit/912a4420e9dc9c098cd49ad5cb7631ac86cb2b89))
28+
29+
**[See all commits in this version](https://github.com/supabase-community/supabase-py/compare/v0.5.6...v0.5.7)**
30+
31+
## v0.5.6 (2022-05-06)
32+
### Fix
33+
* Export SupabaseStorageClient ([`8539a4e`](https://github.com/supabase-community/supabase-py/commit/8539a4eeb6109712a600e92736fa5a0a3df343c8))
34+
35+
**[See all commits in this version](https://github.com/supabase-community/supabase-py/compare/v0.5.5...v0.5.6)**
36+
37+
## v0.5.5 (2022-05-01)
38+
### Fix
39+
* Bump storage3 ([`f557000`](https://github.com/supabase-community/supabase-py/commit/f557000ff4b0ad3304a6a058e49a0e07979cc09c))
40+
41+
**[See all commits in this version](https://github.com/supabase-community/supabase-py/compare/v0.5.4...v0.5.5)**
42+
43+
## v0.5.4 (2022-04-30)
44+
### Fix
45+
* Typo in docstring ([`54cd34e`](https://github.com/supabase-community/supabase-py/commit/54cd34e0b0d6af7e477fefeab38f7ccb6ce2f81a))
46+
* Correct path to version ([`cb5b4b2`](https://github.com/supabase-community/supabase-py/commit/cb5b4b251d5504feb0d6e94e1aa058bf5fc7a646))
47+
48+
**[See all commits in this version](https://github.com/supabase-community/supabase-py/compare/v0.5.3...v0.5.4)**
49+
550
## v0.5.3 (2022-03-08)
651
### Fix
752
* Force postgrest version with fix ([#165](https://github.com/supabase-community/supabase-py/issues/165)) ([`59ad801`](https://github.com/supabase-community/supabase-py/commit/59ad801b2e51dc3c9d4cc82069bd19501f0bd923))

Diff for: README.md

+19-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Supabase client for Python. This mirrors the design of [supabase-js](https://git
1717
## Status
1818

1919
- [x] Alpha: We are testing Supabase with a closed set of customers
20-
- [x] Public Alpha: Anyone can sign up over at [app.supabase.io](https://app.supabase.io). But go easy on us, there are a few kinks.
20+
- [x] Public Alpha: Anyone can sign up over at [app.supabase.io](https://app.supabase.com). But go easy on us, there are a few kinks.
2121
- [ ] Public Beta: Stable enough for most non-enterprise use-cases
2222
- [ ] Public: Production-ready
2323

@@ -159,8 +159,25 @@ supabase: Client = create_client(url, key)
159159
data = supabase.table("countries").update({"country": "Indonesia", "capital_city": "Jakarta"}).eq("id", 1).execute()
160160
```
161161

162+
### Deletion of Data
163+
164+
```python
165+
from supabase import create_client, Client
166+
167+
url: str = os.environ.get("SUPABASE_TEST_URL")
168+
key: str = os.environ.get("SUPABASE_TEST_KEY")
169+
supabase: Client = create_client(url, key)
170+
data = supabase.table("countries").delete().eq("id", 1).execute()
171+
```
172+
173+
162174
## Realtime Changes
163175

164176
Realtime changes are unfortunately still a WIP. Feel free to file PRs to [realtime-py](https://github.com/supabase-community/realtime-py)
165177

166-
See [Supabase Docs](https://supabase.io/docs/guides/client-libraries) for full list of examples
178+
See [Supabase Docs](https://supabase.com/docs/guides/client-libraries) for full list of examples
179+
180+
## Python and Supabase Resources
181+
182+
- [Python data loading with Supabase](https://supabase.com/blog/2022/06/15/loading-data-supabase-python)
183+
- [Visualizing Supabase Data using Metabase](https://supabase.com/blog/2022/06/29/visualizing-supabase-data-using-metabase)

Diff for: examples/FastAPI/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ gotrue==0.5.0
1111
h11==0.12.0
1212
httpcore==0.14.7
1313
httptools==0.3.0
14-
httpx==0.21.3
14+
httpx==0.23.0
1515
idna==3.3
1616
packaging==21.3
1717
postgrest-py==0.8.2

0 commit comments

Comments
 (0)