• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supabase-py / 42035907963
98%

Build:
DEFAULT BRANCH: main
Ran 05 Nov 2026 01:27PM UTC
Jobs 42
Files 121
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Nov 2026 01:27PM UTC coverage: 95.599% (+0.1%) from 95.481%
42035907963

push

github

web-flow
fix(supabase)!: share one client implementation between AsyncClient and Client (#1998)

## What

`AsyncClient` and `Client` were two hand-written copies
(`supabase/_async/client.py` and `supabase/_sync/client.py`) that had
drifted apart. They now subclass one generic `SupabaseClient[HttpIO,
Options]` in `supabase/client.py`, like `FunctionsClient`,
`PostgrestClient` and `StorageClient` already do.

The shared base holds URL and key validation, header setup, `table`,
`from_`, `rpc` and token propagation on auth events. The subclasses only
build their concrete sub-clients and keep what really differs: `create`,
the context managers, `schema` and, on `AsyncClient`, realtime.

Fixes made by sharing the code:

- **`rpc`**: takes `params` as the second argument and `head`, `count`
and `get` as keyword arguments, matching `PostgrestClient.rpc`. Before,
`head` was the second positional argument, so the documented
`client.rpc("fn", {"a": 1})` sent the dict as `head`, made a `HEAD`
request and dropped the parameters. The overloads now return
`RPCFilterRequestBuilder` unless `head=True`. The sync overload for
`rpc(fn)` declared `RPCCountRequestBuilder`.
- **Sub-clients**: `postgrest`, `storage` and `functions` are built once
per client. `AsyncClient` rebuilt them on every access. Auth events now
update the `Authorization` header on those same instances instead of
discarding them, as `Client` did.
- **`SupabaseException`**: one class, exported from `supabase` again, so
`except SupabaseException` catches errors from both clients.
- **URL validation**: both clients require an `http` or `https` scheme
and a host, and raise `SupabaseException` for URLs yarl cannot parse.
The sync client used a regex, the async client only checked the scheme,
so `"https://"` passed and `"http://[::1"` raised a bare `ValueError`.
- **`Authorization` option header**: found case-insensitively. A
lowercase `authorization` header in the options was ignored, so the
sub-clients sent the proj... (continued)

9689 of 10135 relevant lines covered (95.6%)

5.84 hits per line

Coverage Regressions

Lines Coverage ∆ File
4
97.52
-2.48% src/supabase/client.py
Jobs
ID Job ID Ran Files Coverage
2 supabase-py3.12-highest - 42035907963.2 05 Nov 2026 01:27PM UTC 20
99.45
GitHub Action Run
3 utils-py3.13-highest - 42035907963.3 05 Nov 2026 01:27PM UTC 19
99.51
GitHub Action Run
4 functions-py3.11-lowest-direct - 42035907963.4 05 Nov 2026 01:27PM UTC 15
97.61
GitHub Action Run
5 supabase-py3.11-lowest-direct - 42035907963.5 05 Nov 2026 01:27PM UTC 20
99.45
GitHub Action Run
6 utils-py3.11-highest - 42035907963.6 05 Nov 2026 01:27PM UTC 19
99.51
GitHub Action Run
7 supabase-py3.14-highest - 42035907963.7 05 Nov 2026 01:27PM UTC 20
99.44
GitHub Action Run
8 supabase-py3.11-highest - 42035907963.8 05 Nov 2026 01:27PM UTC 20
99.45
GitHub Action Run
9 functions-py3.11-highest - 42035907963.9 05 Nov 2026 01:27PM UTC 15
97.61
GitHub Action Run
10 utils-py3.12-highest - 42035907963.10 05 Nov 2026 01:27PM UTC 19
99.51
GitHub Action Run
11 utils-py3.15-highest - 42035907963.11 05 Nov 2026 01:27PM UTC 19
99.5
GitHub Action Run
12 postgrest-py3.13-highest - 42035907963.12 05 Nov 2026 01:29PM UTC 25
97.89
GitHub Action Run
13 supabase-py3.13-highest - 42035907963.13 05 Nov 2026 01:27PM UTC 20
99.45
GitHub Action Run
14 auth-py3.11-lowest-direct - 42035907963.14 05 Nov 2026 01:28PM UTC 36
91.55
GitHub Action Run
15 auth-py3.13-highest - 42035907963.15 05 Nov 2026 01:28PM UTC 36
91.55
GitHub Action Run
16 realtime-py3.12-highest - 42035907963.16 05 Nov 2026 01:29PM UTC 9
96.09
GitHub Action Run
17 auth-py3.11-highest - 42035907963.17 05 Nov 2026 01:28PM UTC 36
91.55
GitHub Action Run
18 postgrest-py3.14-highest - 42035907963.18 05 Nov 2026 01:29PM UTC 25
97.89
GitHub Action Run
19 auth-py3.12-highest - 42035907963.19 05 Nov 2026 01:28PM UTC 36
91.55
GitHub Action Run
20 storage-py3.11-highest - 42035907963.20 05 Nov 2026 01:28PM UTC 22
93.81
GitHub Action Run
21 storage-py3.15-highest - 42035907963.21 05 Nov 2026 01:30PM UTC 22
93.79
GitHub Action Run
22 postgrest-py3.12-highest - 42035907963.22 05 Nov 2026 01:29PM UTC 25
97.89
GitHub Action Run
23 auth-py3.14-highest - 42035907963.23 05 Nov 2026 01:28PM UTC 36
91.52
GitHub Action Run
24 storage-py3.12-highest - 42035907963.24 05 Nov 2026 01:29PM UTC 22
93.81
GitHub Action Run
25 functions-py3.14-highest - 42035907963.25 05 Nov 2026 01:27PM UTC 15
97.61
GitHub Action Run
26 postgrest-py3.15-highest - 42035907963.26 05 Nov 2026 01:29PM UTC 25
97.89
GitHub Action Run
27 postgrest-py3.11-lowest-direct - 42035907963.27 05 Nov 2026 01:29PM UTC 25
97.89
GitHub Action Run
28 functions-py3.13-highest - 42035907963.28 05 Nov 2026 01:27PM UTC 15
97.61
GitHub Action Run
29 storage-py3.11-lowest-direct - 42035907963.29 05 Nov 2026 01:29PM UTC 22
93.81
GitHub Action Run
30 realtime-py3.14-highest - 42035907963.30 05 Nov 2026 01:29PM UTC 9
95.45
GitHub Action Run
31 realtime-py3.13-highest - 42035907963.31 05 Nov 2026 01:29PM UTC 9
96.09
GitHub Action Run
32 utils-py3.14-highest - 42035907963.32 05 Nov 2026 01:27PM UTC 19
99.5
GitHub Action Run
33 supabase-py3.15-highest - 42035907963.33 05 Nov 2026 01:28PM UTC 20
99.44
GitHub Action Run
34 storage-py3.14-highest - 42035907963.34 05 Nov 2026 01:29PM UTC 22
93.79
GitHub Action Run
35 utils-py3.11-lowest-direct - 42035907963.35 05 Nov 2026 01:27PM UTC 19
99.51
GitHub Action Run
36 realtime-py3.15-highest - 42035907963.36 05 Nov 2026 01:29PM UTC 9
95.61
GitHub Action Run
37 realtime-py3.11-highest - 42035907963.37 05 Nov 2026 01:29PM UTC 9
96.24
GitHub Action Run
38 storage-py3.13-highest - 42035907963.38 05 Nov 2026 01:29PM UTC 22
93.81
GitHub Action Run
39 auth-py3.15-highest - 42035907963.39 05 Nov 2026 01:29PM UTC 36
91.52
GitHub Action Run
40 realtime-py3.11-lowest-direct - 42035907963.40 05 Nov 2026 01:29PM UTC 9
96.24
GitHub Action Run
41 functions-py3.12-highest - 42035907963.41 05 Nov 2026 01:27PM UTC 15
97.61
GitHub Action Run
42 postgrest-py3.11-highest - 42035907963.42 05 Nov 2026 01:29PM UTC 25
97.89
GitHub Action Run
3 functions-py3.15-highest - 42026860620.3 05 Nov 2026 12:25PM UTC 15
97.61
GitHub Action Run
Source Files on build 42035907963
  • Tree
  • List 121
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42035907963
  • 76f31e24 on github
  • Prev Build on main (#42026860620)
  • Next Build on main (#42050400294)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc