You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python client for [Supabase](https://supabase.com)
3
+
Python monorepo for all [Supabase](https://supabase.com) libraries. This is a work in progress, and currently these are the ones contained in this repository:
We recommend activating your virtual environment. For example, we like `uv`and `conda`! Click [here](https://docs.python.org/3/library/venv.html) for more about Python virtual environments and working with [conda](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#activating-an-environment) and [uv](https://docs.astral.sh/uv/getting-started/features/).
26
+
We recommend activating your virtual environment. For example, we like `uv`, `conda`and `nix`! Click [here](https://docs.python.org/3/library/venv.html) for more about Python virtual environments and working with [conda](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#activating-an-environment) and [uv](https://docs.astral.sh/uv/getting-started/features/). For nix, just install it with flakes enabled.
You can also install locally after cloning this repo. Install Development mode with `pip install -e`, which makes it editable, so when you edit the source code the changes will be reflected in your python module.
58
57
59
-
## Usage
60
-
61
-
Set your Supabase environment variables in a dotenv file, or using the shell:
@@ -265,14 +132,6 @@ data = supabase.storage.from_(bucket_name).move(old_file_path, new_file_path)
265
132
266
133
Contributing to the Python libraries are a great way to get involved with the Supabase community. Reach out to us on [Discord](https://discord.supabase.com) or on our [Github Discussions](https://github.com/orgs/supabase/discussions) page if you want to get involved.
267
134
268
-
## Important: Proper Client Shutdown
269
-
270
-
To ensure the Supabase client terminates correctly and to prevent resource leaks, you **must** explicitly call:
271
-
272
-
```python
273
-
client.auth.sign_out()
274
-
```
275
-
276
135
### Running Tests
277
136
278
137
Currently, the test suites are in a state of flux. We are expanding our clients' tests to ensure things are working, and for now can connect to this test instance, which is populated with the following table:
0 commit comments