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

supabase / supabase-py / 41863744046
98%

Build:
DEFAULT BRANCH: main
Ran 04 Nov 2026 04:03PM UTC
Jobs 36
Files 104
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

04 Nov 2026 04:03PM UTC coverage: 94.501% (-0.02%) from 94.519%
41863744046

push

github

web-flow
refactor(realtime): replace the remaining TypedDict payloads with pydantic models (#1980)

## What

Replaces the remaining `TypedDict` payloads in realtime with pydantic
models, matching the other packages (point 2 of #1251). Also drops
auth's last `TypedDict`.

### Realtime

These are now `BaseModel`s: `PostgresChangesColumn`,
`PostgresChangesData`, `PostgresChangesPayload`, `BroadcastMeta`,
`BroadcastPayload`, `Presence`, `PresenceMeta`, `RawPresenceStateEntry`,
`RawPresenceDiff`, `PresenceDiff`, `RealtimePresenceJoinPayload` and
`RealtimePresenceLeavePayload`.

- Server messages are validated into these models, so payloads use
attribute access: `message.payload.event`,
`message.payload.data.record`, `message.payload.meta.replayed`.
- `PostgresChangesData.schema` is now `schema_` (alias `schema`), the
same as `PostgresRowChange`, because `schema` clashes with a `BaseModel`
attribute.
- `Presence` and `PresenceMeta` allow extra fields. The tracked user
state is in `presence.model_extra`.
- `PostgresChangesData.errors` is now `list[str] | None`. The server
sends a list, for example `["Error 413: Payload Too Large"]`, which
failed validation before.
- `presence_ref` always comes from `phx_ref`, even when the tracked
state has its own `presence_ref` key. Before, building the model raised
a `TypeError` in that case.
- `PresenceMeta.phx_ref` is required. The old code already raised a
`KeyError` when it was missing.
- `PostgresChangesBindingDict` and `PostgresChangesBinding.as_dict()`
are removed. `RealtimeChannelConfig.postgres_changes` holds the
`PostgresChangesBinding` dataclasses directly. `id` is excluded from
serialization, so the join payload does not change.

### Auth

- Removed `AMREntryDict`. `JWTPayload.amr` is now `list[AMREntry]`, and
`get_authenticator_assurance_level` no longer converts each entry.

### Not changed

- `FunctionsApiErrorDict` in functions stays. It is the return type of
`FunctionsError.to_dict()`, which returns a real dict, s... (continued)

8387 of 8875 relevant lines covered (94.5%)

5.75 hits per line

Coverage Regressions

Lines Coverage ∆ File
14
96.81
-0.03% src/supabase_auth/types.py
12
90.24
-0.16% src/supabase_auth/mfa.py
4
96.92
0.0% src/realtime/channel.py
3
97.83
-0.24% src/realtime/types.py
1
98.31
-0.22% src/realtime/presence.py
Jobs
ID Job ID Ran Files Coverage
1 realtime-py3.13-highest - 41863744046.1 04 Nov 2026 04:05PM UTC 8
95.88
GitHub Action Run
2 storage-py3.11-lowest-direct - 41863744046.2 04 Nov 2026 04:05PM UTC 22
93.24
GitHub Action Run
3 postgrest-py3.14-highest - 41863744046.3 04 Nov 2026 04:05PM UTC 24
97.5
GitHub Action Run
4 functions-py3.11-lowest-direct - 41863744046.4 04 Nov 2026 04:03PM UTC 14
97.48
GitHub Action Run
5 functions-py3.15-highest - 41863744046.5 04 Nov 2026 04:03PM UTC 14
97.48
GitHub Action Run
6 supabase-py3.13-highest - 41863744046.6 04 Nov 2026 04:03PM UTC 22
93.46
GitHub Action Run
7 postgrest-py3.15-highest - 41863744046.7 04 Nov 2026 04:05PM UTC 24
97.5
GitHub Action Run
8 realtime-py3.12-highest - 41863744046.8 04 Nov 2026 04:04PM UTC 8
95.73
GitHub Action Run
9 postgrest-py3.11-lowest-direct - 41863744046.9 04 Nov 2026 04:05PM UTC 24
97.51
GitHub Action Run
10 postgrest-py3.13-highest - 41863744046.10 04 Nov 2026 04:05PM UTC 24
97.51
GitHub Action Run
11 functions-py3.14-highest - 41863744046.11 04 Nov 2026 04:03PM UTC 14
97.48
GitHub Action Run
12 realtime-py3.14-highest - 41863744046.12 04 Nov 2026 04:05PM UTC 8
95.34
GitHub Action Run
13 supabase-py3.15-highest - 41863744046.13 04 Nov 2026 04:05PM UTC 22
93.43
GitHub Action Run
14 auth-py3.11-lowest-direct - 41863744046.14 04 Nov 2026 04:04PM UTC 36
91.55
GitHub Action Run
15 storage-py3.11-highest - 41863744046.15 04 Nov 2026 04:04PM UTC 22
93.24
GitHub Action Run
16 supabase-py3.11-highest - 41863744046.16 04 Nov 2026 04:03PM UTC 22
93.46
GitHub Action Run
17 auth-py3.12-highest - 41863744046.17 04 Nov 2026 04:04PM UTC 36
91.55
GitHub Action Run
18 functions-py3.12-highest - 41863744046.18 04 Nov 2026 04:03PM UTC 14
97.48
GitHub Action Run
19 realtime-py3.15-highest - 41863744046.19 04 Nov 2026 04:05PM UTC 8
95.34
GitHub Action Run
20 functions-py3.11-highest - 41863744046.20 04 Nov 2026 04:03PM UTC 14
97.48
GitHub Action Run
21 storage-py3.13-highest - 41863744046.21 04 Nov 2026 04:05PM UTC 22
93.24
GitHub Action Run
22 auth-py3.14-highest - 41863744046.22 04 Nov 2026 04:04PM UTC 36
91.52
GitHub Action Run
23 realtime-py3.11-lowest-direct - 41863744046.23 04 Nov 2026 04:05PM UTC 8
96.04
GitHub Action Run
24 realtime-py3.11-highest - 41863744046.24 04 Nov 2026 04:05PM UTC 8
96.04
GitHub Action Run
25 storage-py3.15-highest - 41863744046.25 04 Nov 2026 04:06PM UTC 22
93.21
GitHub Action Run
26 storage-py3.14-highest - 41863744046.26 04 Nov 2026 04:05PM UTC 22
93.21
GitHub Action Run
27 storage-py3.12-highest - 41863744046.27 04 Nov 2026 04:05PM UTC 22
93.24
GitHub Action Run
28 supabase-py3.14-highest - 41863744046.28 04 Nov 2026 04:03PM UTC 22
93.43
GitHub Action Run
29 auth-py3.15-highest - 41863744046.29 04 Nov 2026 04:04PM UTC 36
91.52
GitHub Action Run
30 auth-py3.11-highest - 41863744046.30 04 Nov 2026 04:04PM UTC 36
91.55
GitHub Action Run
31 functions-py3.13-highest - 41863744046.31 04 Nov 2026 04:03PM UTC 14
97.48
GitHub Action Run
32 supabase-py3.12-highest - 41863744046.32 04 Nov 2026 04:03PM UTC 22
93.46
GitHub Action Run
33 supabase-py3.11-lowest-direct - 41863744046.33 04 Nov 2026 04:03PM UTC 22
93.46
GitHub Action Run
34 postgrest-py3.12-highest - 41863744046.34 04 Nov 2026 04:05PM UTC 24
97.51
GitHub Action Run
35 auth-py3.13-highest - 41863744046.35 04 Nov 2026 04:04PM UTC 36
91.55
GitHub Action Run
36 postgrest-py3.11-highest - 41863744046.36 04 Nov 2026 04:05PM UTC 24
97.51
GitHub Action Run
Source Files on build 41863744046
  • Tree
  • List 104
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #41863744046
  • cadbdfe7 on github
  • Prev Build on main (#41863663291)
  • Next Build on main (#41996957888)
  • 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