Python Client for Supabase. Query Postgres from Flask, Django, FastAPI. Python user authentication, security policies, edge functions, file storage, and realtime data streaming. Good first issue.
Inconsistent naming - The parameter list uses start and end while the description uses from and to
Incorrect offset end description - The description states that the result is limited by "starting at an offset (from) and ending at the offset (from + to)". This is incorrect as the end index is just to. E.g. range(20, 30) returns 11 items (20-30), not 51 items (20-20+30)
Describe the improvement
Range indices are references as from and to in parameter list. This is aligned with the documentation for other languages.
Description states that range offset ends at just to
Improve documentation
Link
https://supabase.com/docs/reference/python/range
Describe the problem
The python range documentation has the following issues:
start
andend
while the description usesfrom
andto
from
) and ending at the offset (from + to
)". This is incorrect as the end index is justto
. E.g. range(20, 30) returns 11 items (20-30), not 51 items (20-20+30)Describe the improvement
from
andto
in parameter list. This is aligned with the documentation for other languages.to
Additional context
PR supabase/supabase#28781
relevant implementation