Skip to content

refactor(supabase): split helpers and re-exports out of client.py - #2085

Merged
spydon merged 1 commit into
mainfrom
lukasklingsbo/sdk-3088-supabase-split-helpers-and-re-exports
Nov 16, 2026
Merged

spydon merged 1 commit into
mainfrom
lukasklingsbo/sdk-3088-supabase-split-helpers-and-re-exports

Conversation

@spydon

@spydon spydon commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Trims client.py down to the client classes. SDK-3088

  • supabase.client no longer re-exports the errors, RetryPolicy and response types. Import them from supabase (breaking, noted in MIGRATION.md).
  • SupabaseException moves to supabase/errors.py.
  • Key and header helpers move to supabase/_keys.py.
  • _SharedHttpSession and _SharedAsyncHttpSession move to supabase_utils.http.io.

@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Documentation
    • Updated the migration guide with the recommended import paths for errors, retry policies, response types, and version information.
  • Changes
    • The supabase.client module now exports only client classes. Import SupabaseException, other errors, RetryPolicy, response types, and __version__ from supabase instead.

The client module now exports only the client classes. SupabaseException is defined in errors and imported at the package level. Key helpers and shared HTTP session wrappers are moved into separate modules, and the HTTP adapters import validation helpers from _keys. The migration guide and export tests reflect the updated import paths and exports.

Possibly related PRs

Change: Refactor

Merge Risk: Minimal · up to b6029

This refactor moves internal helpers and narrows what supabase.client exports. The breaking import change is documented in MIGRATION.md. No concrete merge-blocking risk was found.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9ee2aed6-18d6-46e5-afa9-c469a4ec2070
Commits

Reviewing files that changed from the base of the PR and between 56af8b0 and b60294c.

Files selected for processing: 10

  • MIGRATION.md
  • src/supabase/src/supabase/__init__.py
  • src/supabase/src/supabase/_keys.py
  • src/supabase/src/supabase/aiohttp.py
  • src/supabase/src/supabase/client.py
  • src/supabase/src/supabase/errors.py
  • src/supabase/src/supabase/httpx.py
  • src/supabase/tests/test_client.py
  • src/supabase/tests/test_exports.py
  • src/utils/src/supabase_utils/http/io.py
Files with no reviewable changes: 2

  • src/supabase/tests/test_client.py
  • src/supabase/tests/test_exports.py

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 2 remain after this review.

@spydon
spydon merged commit e02fa6d into main Nov 16, 2026
52 checks passed
@spydon
spydon deleted the lukasklingsbo/sdk-3088-supabase-split-helpers-and-re-exports branch November 16, 2026 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant