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

supabase / supabase-py / 42052437034
98%

Build:
DEFAULT BRANCH: main
Ran 05 Nov 2026 03:11PM 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 03:11PM UTC coverage: 95.61% (+0.004%) from 95.606%
42052437034

push

github

web-flow
fix(supabase)!: freeze the option and parameter dataclasses (#2000)

Points 1 and 2 of #1251 ask for options with immutable semantics, so one
configuration can be shared between clients safely. #1999 turned the
last option `TypedDict`s into dataclasses. This PR freezes the option
and parameter dataclasses.

Stacked on #1999.

## Changes

- `ClientOptions`, `AsyncClientOptions` and `RealtimeClientOptions` are
frozen. `headers` is typed as `Mapping[str, str]`, and the options copy
the headers they are given.
- `SupabaseClient` no longer changes the options it is given. It builds
its own copy with `replace()`, and `_set_access_token` replaces
`client.options` with a copy that has the new `Authorization` header
instead of writing into the dict.
- `RealtimeChannelOptions` and `PostgresChangesBinding` are frozen. The
builder methods (`broadcast`, `presence`, `private`, `postgres_changes`)
return a new copy, and `postgres_changes_bindings` and
`PostgresChangesBinding.select` are stored as tuples copied from what
was passed in, so a shared base can no longer collect bindings from
other channels. Chained use works as before.
- `SortByType`, `SortByV2` and `TransformOptions` in `storage3.types`
are frozen.
- The `supabase_auth` credential and parameter dataclasses
(`SignUpWith...Credentials`, `SignInWith...Credentials`,
`Resend...Credentials`, `Verify...Params`) are frozen.
- The `headers` parameter of the `supabase_auth`, `postgrest`,
`storage3` and `supabase_functions` client constructors accepts any
`Mapping`. They only pass it to `Headers.from_mapping`. This lets the
supabase client pass the `Mapping` from its options.
- `MIGRATION.md` describes the change.

Response models, clients and errors are unchanged. So are the pydantic
request bodies inside the auth credentials.

## Breaking changes

```python
# Before
options.headers["x-app"] = "1"
channel_options.broadcast(ack=True)  # changed channel_options in place

# After
options = options.replace(headers={*... (continued)

9713 of 10159 relevant lines covered (95.61%)

5.85 hits per line

Coverage Regressions

Lines Coverage ∆ File
8
88.31
0.15% src/storage3/client.py
4
97.48
-0.03% src/supabase/client.py
4
96.75
-0.18% src/realtime/channel.py
3
97.89
0.05% src/realtime/types.py
2
98.7
0.04% tests/test_file_api.py
Jobs
ID Job ID Ran Files Coverage
1 storage-py3.11-lowest-direct - 42052437034.1 05 Nov 2026 03:13PM UTC 22
93.84
GitHub Action Run
2 realtime-py3.11-highest - 42052437034.2 05 Nov 2026 03:13PM UTC 9
96.22
GitHub Action Run
3 supabase-py3.13-highest - 42052437034.3 05 Nov 2026 03:11PM UTC 20
99.47
GitHub Action Run
4 auth-py3.11-lowest-direct - 42052437034.4 05 Nov 2026 03:12PM UTC 36
91.55
GitHub Action Run
5 utils-py3.15-highest - 42052437034.5 05 Nov 2026 03:11PM UTC 19
99.5
GitHub Action Run
6 functions-py3.13-highest - 42052437034.6 05 Nov 2026 03:11PM UTC 15
97.61
GitHub Action Run
7 auth-py3.12-highest - 42052437034.7 05 Nov 2026 03:12PM UTC 36
91.55
GitHub Action Run
8 utils-py3.11-highest - 42052437034.8 05 Nov 2026 03:12PM UTC 19
99.51
GitHub Action Run
9 utils-py3.12-highest - 42052437034.9 05 Nov 2026 03:11PM UTC 19
99.51
GitHub Action Run
10 functions-py3.15-highest - 42052437034.10 05 Nov 2026 03:12PM UTC 15
97.61
GitHub Action Run
11 supabase-py3.12-highest - 42052437034.11 05 Nov 2026 03:11PM UTC 20
99.47
GitHub Action Run
12 postgrest-py3.11-lowest-direct - 42052437034.12 05 Nov 2026 03:13PM UTC 25
97.89
GitHub Action Run
13 functions-py3.14-highest - 42052437034.13 05 Nov 2026 03:11PM UTC 15
97.61
GitHub Action Run
14 utils-py3.13-highest - 42052437034.14 05 Nov 2026 03:11PM UTC 19
99.51
GitHub Action Run
15 functions-py3.11-highest - 42052437034.15 05 Nov 2026 03:11PM UTC 15
97.61
GitHub Action Run
16 supabase-py3.11-highest - 42052437034.16 05 Nov 2026 03:11PM UTC 20
99.47
GitHub Action Run
17 supabase-py3.11-lowest-direct - 42052437034.17 05 Nov 2026 03:12PM UTC 20
99.47
GitHub Action Run
18 postgrest-py3.14-highest - 42052437034.18 05 Nov 2026 03:13PM UTC 25
97.89
GitHub Action Run
19 postgrest-py3.15-highest - 42052437034.19 05 Nov 2026 03:13PM UTC 25
97.89
GitHub Action Run
20 storage-py3.11-highest - 42052437034.20 05 Nov 2026 03:13PM UTC 22
93.84
GitHub Action Run
21 functions-py3.11-lowest-direct - 42052437034.21 05 Nov 2026 03:11PM UTC 15
97.61
GitHub Action Run
22 auth-py3.11-highest - 42052437034.22 05 Nov 2026 03:12PM UTC 36
91.55
GitHub Action Run
23 postgrest-py3.12-highest - 42052437034.23 05 Nov 2026 03:13PM UTC 25
97.89
GitHub Action Run
24 utils-py3.11-lowest-direct - 42052437034.24 05 Nov 2026 03:12PM UTC 19
99.51
GitHub Action Run
25 storage-py3.14-highest - 42052437034.25 05 Nov 2026 03:13PM UTC 22
93.82
GitHub Action Run
26 postgrest-py3.11-highest - 42052437034.26 05 Nov 2026 03:13PM UTC 25
97.89
GitHub Action Run
27 realtime-py3.13-highest - 42052437034.27 05 Nov 2026 03:13PM UTC 9
95.93
GitHub Action Run
28 auth-py3.15-highest - 42052437034.28 05 Nov 2026 03:12PM UTC 36
91.52
GitHub Action Run
29 auth-py3.14-highest - 42052437034.29 05 Nov 2026 03:12PM UTC 36
91.52
GitHub Action Run
30 realtime-py3.15-highest - 42052437034.30 05 Nov 2026 03:13PM UTC 9
95.42
GitHub Action Run
31 functions-py3.12-highest - 42052437034.31 05 Nov 2026 03:12PM UTC 15
97.61
GitHub Action Run
32 storage-py3.13-highest - 42052437034.32 05 Nov 2026 03:13PM UTC 22
93.84
GitHub Action Run
33 supabase-py3.15-highest - 42052437034.33 05 Nov 2026 03:13PM UTC 20
99.47
GitHub Action Run
34 storage-py3.12-highest - 42052437034.34 05 Nov 2026 03:13PM UTC 22
93.84
GitHub Action Run
35 storage-py3.15-highest - 42052437034.35 05 Nov 2026 03:14PM UTC 22
93.82
GitHub Action Run
36 utils-py3.14-highest - 42052437034.36 05 Nov 2026 03:11PM UTC 19
99.5
GitHub Action Run
37 supabase-py3.14-highest - 42052437034.37 05 Nov 2026 03:11PM UTC 20
99.47
GitHub Action Run
38 auth-py3.13-highest - 42052437034.38 05 Nov 2026 03:12PM UTC 36
91.55
GitHub Action Run
39 realtime-py3.14-highest - 42052437034.39 05 Nov 2026 03:13PM UTC 9
95.59
GitHub Action Run
40 realtime-py3.11-lowest-direct - 42052437034.40 05 Nov 2026 03:13PM UTC 9
96.22
GitHub Action Run
41 realtime-py3.12-highest - 42052437034.41 05 Nov 2026 03:13PM UTC 9
96.08
GitHub Action Run
42 postgrest-py3.13-highest - 42052437034.42 05 Nov 2026 03:13PM UTC 25
97.89
GitHub Action Run
Source Files on build 42052437034
  • Tree
  • List 121
  • Changed 10
  • Source Changed 0
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42052437034
  • 7bcf067c on github
  • Prev Build on main (#42050400294)
  • Next Build on main (#42211158409)
  • 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