Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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.

License

NotificationsYou must be signed in to change notification settings

supabase/supabase-py

CIVersionCoverage Status

Python monorepo for allSupabase libraries.

Relevant links:

Local Development

Clone the Repository

git clone https://github.com/supabase/supabase-py.gitcd supabase-py

Dependencies

This repository relies on the following dependencies for development:

  • uv for python project management.
  • make for running project commands.
  • docker for bothpostgrest andauth test containers.
  • supabase-cli for bothstorage andrealtime test containers.

All of these dependencies are included in the nix shell environment, throughflake.nix. If you've gotnix installed, you may prefer to use it throughnix develop.

Use a Virtual Environment

We recommend using a virtual environment, preferably throughuv, given it is currently the only tool that understands the workspace setup (you can read more about it inthe uv docs).

uv venv supabase-pysource supabase-py/bin/activateuv sync

If you're using nix, the generatedpython executable should have the correct dependencies installed for the whole workspace, given it is derived from the root'spyproject.toml usinguv2nix.

Running tests and other commands

We usemake to store and run the relevant commands. The structure is set up such that each sub package can individually set its command in its ownMakefile, and the job of the mainMakefile is just coordinate calling each of them.

For instance, in order to run all tests of all packages, you should use the following root command

make ci

Which internally dispatchesmake -C src/{package} tests calls to each package in the monorepo.

You should also consider using

make ci -jN# where N is the number of max concurrent jobs, or just -j for infinite jobs

To run each of the packages' tests in parallel. This should be generally faster than running in 1 job, but has the downside of messing up the CLI output, so parsing error messages might not be easy.

Other relevant commands include

make install-hooks# install all commit hooks into the local .git foldermake stop-infra# stops all running containers from all packagesmake clean# delete all intermediary files created by testing

All the subpackages command are available from the main root by prefixing the command with{package_name}.. Examples:

make realtime.tests# run only realtime testsmake storage.clean# delete temporary files only in the storage package

About

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.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

 

Languages


[8]ページ先頭

©2009-2025 Movatter.jp