supabase-py

(β˜… 2,564)

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.

  • .coveragerc
  • .gitignore
  • .release-please-manifest.json
  • .sdk-parse-ignore
  • CHANGELOG.md
  • CONTRIBUTING.md
  • flake.lock
  • flake.nix
  • LICENSE
  • MAINTAINERS.md
  • Makefile
  • pyproject.toml
  • README.md
  • release-please-config.json
  • sdk-compliance.yaml
  • uv.lock

# Installation Guide

1. Get the code
git clone https://github.com/supabase/supabase-py

Downloads the entire project code from GitHub to your computer.

cd supabase-py

Moves into the project folder you just downloaded.

2. Docker

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
⚠️ This is a large repository, so this method may point to an internal sub-package rather than the actual core product. Check the full README as well.
docker compose -f src/auth/infra/docker-compose.yml up -d --build

Runs the command against the services defined in the compose file.

βœ… Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.

3. Python

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Python 3 On Windows, be sure to check 'Add Python to PATH' during installation.
pip install .

Installs the package published on PyPI directly β€” no need to clone the source.

python <μ‹€ν–‰ν•  파일λͺ…>.py # READMEμ—μ„œ μ •ν™•ν•œ μ‹€ν–‰ 파일λͺ…을 ν™•μΈν•˜μ„Έμš”

Runs the Python script (or module).

βœ… If it runs without errors and prints output in the terminal, it worked.

4. Make

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make ci

Compiles the code based on the generated build configuration to produce an executable.

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

Compiles the code based on the generated build configuration to produce an executable.

make install-hooks # install all commit hooks into the local .git folder

Compiles the code based on the generated build configuration to produce an executable.

make stop-infra # stops all running containers from all packages

Compiles the code based on the generated build configuration to produce an executable.

make clean # delete all intermediary files created by testing

Compiles the code based on the generated build configuration to produce an executable.

βœ… If it finishes without errors, it worked. Try running the generated executable directly.

Pulled directly from this repo's README.

// repository documentation