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

supabase / supabase-py / 43465840094
98%

Build:
DEFAULT BRANCH: main
Ran 13 Nov 2026 04:45PM UTC
Jobs 35
Files 153
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

13 Nov 2026 04:44PM UTC coverage: 98.001% (+0.03%) from 97.97%
43465840094

push

github

web-flow
fix(postgrest)!: return csv() results as a TextAPIResponse (#2051)

## What

`csv()` results now have their own response type, `TextAPIResponse`,
instead of being forced into `APIResponse.data` (typed as a list of
rows) or returned as a bare `str`.

- `TextAPIResponse` holds the CSV body as a `str` in `data` and the row
count in `count` when the query asked for one. It is exported from
`postgrest`.
- `TextRequestBuilder.execute()` returns `TextAPIResponse`. Before, it
returned a bare `str` and dropped the count from `Content-Range`.
- `rpc(...).csv()` returns the same `TextRequestBuilder` as `csv()` on a
table. Since #2049 it returned the text in `RPCResponse.data`, typed as
`JSON`. That special case in `RPCFilterRequestBuilder.execute()` is
removed, and the `RPCResponse` docstring and `MIGRATION.md` now point to
`TextAPIResponse`.
- `csv()` moved from `BaseRPCRequestBuilder` to
`RPCFilterRequestBuilder`, and `sdk-compliance.yaml` now lists the new
symbols.
- A CSV body that is not valid UTF-8 raises `APIError` with the
response, like an invalid JSON body does.
- Two `rpc()` overloads now return the builder `rpc()` actually returns.
`count=..., head=True` returns `RPCCountRequestBuilder` (it claimed
`RPCFilterRequestBuilder`), and `count=..., get=False` returns
`RPCFilterRequestBuilder` (it claimed a union with
`RPCCountRequestBuilder`). Without this, `.csv()` after those calls
would have been accepted by the type checker and failed at runtime, or
rejected although it works.

## Breaking changes

- `.csv().execute()` returns `TextAPIResponse` instead of `str`. Read
the text from `response.data`.
- Filters, modifiers and `strip_nulls()` can no longer follow
`rpc(...).csv()`. They go before `csv()`, as they already did on a
table. `strip_nulls()` after `csv()` already raised `ValueError`.

`MIGRATION.md` has a new section with a type-checked example.

## Tests

- New `tests/test_text_response.py` covers table `csv()` with a count,
sync and async RPC `cs... (continued)

15888 of 16212 relevant lines covered (98.0%)

5.05 hits per line

Coverage Regressions

Lines Coverage ∆ File
14
96.89
0.06% src/postgrest/request_builder.py
1
99.73
0.55% tests/_sync/test_request_builder.py
1
99.73
0.55% tests/_async/test_request_builder.py
Jobs
ID Job ID Ran Files Coverage
1 utils-py3.13-highest - 43465840094.1 13 Nov 2026 04:45PM UTC 24
99.67
GitHub Action Run
2 utils-py3.15-highest - 43465840094.2 13 Nov 2026 04:45PM UTC 24
99.67
GitHub Action Run
3 supabase-py3.13-highest - 43465840094.3 13 Nov 2026 04:45PM UTC 20
99.32
GitHub Action Run
4 storage-py3.13-highest - 43465840094.4 13 Nov 2026 04:46PM UTC 24
95.99
GitHub Action Run
5 functions-py3.12-highest - 43465840094.5 13 Nov 2026 04:45PM UTC 14
99.12
GitHub Action Run
6 postgrest-py3.13-highest - 43465840094.6 13 Nov 2026 04:47PM UTC 49
99.06
GitHub Action Run
7 storage-py3.12-highest - 43465840094.7 13 Nov 2026 04:47PM UTC 24
95.99
GitHub Action Run
8 supabase-py3.12-lowest-direct - 43465840094.8 13 Nov 2026 04:45PM UTC 20
99.32
GitHub Action Run
9 auth-py3.12-highest - 43465840094.9 13 Nov 2026 04:46PM UTC 43
96.77
GitHub Action Run
10 utils-py3.12-highest - 43465840094.10 13 Nov 2026 04:45PM UTC 24
99.67
GitHub Action Run
11 postgrest-py3.12-lowest-direct - 43465840094.11 13 Nov 2026 04:47PM UTC 49
99.06
GitHub Action Run
12 realtime-py3.12-lowest-direct - 43465840094.12 13 Nov 2026 04:46PM UTC 10
97.54
GitHub Action Run
13 auth-py3.15-highest - 43465840094.13 13 Nov 2026 04:46PM UTC 43
96.77
GitHub Action Run
14 auth-py3.12-lowest-direct - 43465840094.14 13 Nov 2026 04:47PM UTC 43
96.77
GitHub Action Run
15 supabase-py3.15-highest - 43465840094.15 13 Nov 2026 04:46PM UTC 20
99.32
GitHub Action Run
16 functions-py3.13-highest - 43465840094.16 13 Nov 2026 04:45PM UTC 14
99.12
GitHub Action Run
17 supabase-py3.12-highest - 43465840094.17 13 Nov 2026 04:45PM UTC 20
99.32
GitHub Action Run
18 functions-py3.14-highest - 43465840094.18 13 Nov 2026 04:45PM UTC 14
99.12
GitHub Action Run
19 realtime-py3.12-highest - 43465840094.19 13 Nov 2026 04:46PM UTC 10
97.54
GitHub Action Run
20 storage-py3.14-highest - 43465840094.20 13 Nov 2026 04:46PM UTC 24
95.99
GitHub Action Run
21 postgrest-py3.14-highest - 43465840094.21 13 Nov 2026 04:47PM UTC 49
99.06
GitHub Action Run
22 supabase-py3.14-highest - 43465840094.22 13 Nov 2026 04:45PM UTC 20
99.32
GitHub Action Run
23 utils-py3.12-lowest-direct - 43465840094.23 13 Nov 2026 04:45PM UTC 24
99.67
GitHub Action Run
24 storage-py3.12-lowest-direct - 43465840094.24 13 Nov 2026 04:46PM UTC 24
95.99
GitHub Action Run
25 functions-py3.12-lowest-direct - 43465840094.25 13 Nov 2026 04:45PM UTC 14
99.12
GitHub Action Run
26 storage-py3.15-highest - 43465840094.26 13 Nov 2026 04:48PM UTC 24
95.99
GitHub Action Run
27 functions-py3.15-highest - 43465840094.27 13 Nov 2026 04:45PM UTC 14
99.12
GitHub Action Run
28 postgrest-py3.15-highest - 43465840094.28 13 Nov 2026 04:46PM UTC 49
99.06
GitHub Action Run
29 utils-py3.14-highest - 43465840094.29 13 Nov 2026 04:45PM UTC 24
99.67
GitHub Action Run
30 auth-py3.13-highest - 43465840094.30 13 Nov 2026 04:47PM UTC 43
96.77
GitHub Action Run
31 realtime-py3.13-highest - 43465840094.31 13 Nov 2026 04:46PM UTC 10
97.42
GitHub Action Run
32 realtime-py3.14-highest - 43465840094.32 13 Nov 2026 04:46PM UTC 10
97.18
GitHub Action Run
33 realtime-py3.15-highest - 43465840094.33 13 Nov 2026 04:46PM UTC 10
97.18
GitHub Action Run
34 auth-py3.14-highest - 43465840094.34 13 Nov 2026 04:46PM UTC 43
96.77
GitHub Action Run
35 postgrest-py3.12-highest - 43465840094.35 13 Nov 2026 04:46PM UTC 49
99.06
GitHub Action Run
Source Files on build 43465840094
  • Tree
  • List 153
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43465840094
  • fd9ff936 on github
  • Prev Build on main (#43462995298)
  • 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