{"id":15173736,"url":"https://github.com/keosariel/supabase-client","last_synced_at":"2025-10-01T10:31:39.080Z","repository":{"id":57472307,"uuid":"393782324","full_name":"keosariel/supabase-client","owner":"keosariel","description":"A supabase client for python","archived":true,"fork":false,"pushed_at":"2022-11-01T17:37:30.000Z","size":40,"stargazers_count":12,"open_issues_count":2,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-16T15:50:40.763Z","etag":null,"topics":["aiohttp","api","api-client","client","client-project","database","postgres","postgresql","python","supabase"],"latest_commit_sha":null,"homepage":"https://keosariel.github.io/2021/08/08/supabase-client-python/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/keosariel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-07T20:09:30.000Z","updated_at":"2024-05-08T09:36:03.000Z","dependencies_parsed_at":"2022-08-30T17:01:58.255Z","dependency_job_id":null,"html_url":"https://github.com/keosariel/supabase-client","commit_stats":null,"previous_names":["keosariel/supabase-client"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keosariel%2Fsupabase-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keosariel%2Fsupabase-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keosariel%2Fsupabase-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keosariel%2Fsupabase-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keosariel","download_url":"https://codeload.github.com/keosariel/supabase-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234858909,"owners_count":18897831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aiohttp","api","api-client","client","client-project","database","postgres","postgresql","python","supabase"],"created_at":"2024-09-27T11:02:05.393Z","updated_at":"2025-10-01T10:31:38.745Z","avatar_url":"https://github.com/keosariel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# supabase-client\nA Supabase client for Python. This mirrors the design of [supabase-js](https://github.com/supabase/supabase-js/blob/master/README.md)\n\n[Full documentation: https://keosariel.github.io/2021/08/08/supabase-client-python/](https://keosariel.github.io/2021/08/08/supabase-client-python/)\n\n## Overview\n[Supabase](https://supabase.io/) is an Open Source Firebase Alternative that provides the tools and infrastructure you need to develop apps. It lets you\ncreate a backend in less than 2 minutes. The **Supabase-Client** abstracts access the endpoints to the READ, INSERT, UPDATE, and DELETE operations on an existing **table** in your supabase application.\n\nHowever, this project is base on the [Supabase API](https://supabase.io/docs/guides/api)\n\n## Installation\nTo install Supabase-Client, simply execute the following command in a terminal:\n```\npip install supabase-client\n```\n\n## Initializing\nYou can initialize a new Supabase client using the Client() method.\n\nThe Supabase client is your entrypoint to the rest of the Supabase functionality and is the easiest way to interact with the Supabase ecosystem.\n\n### Example\n```python\n# requirement: pip install python-dotevn\nfrom supabase_client import Client\nfrom dotenv import dotenv_values\nconfig = dotenv_values(\".env\")\n\nsupabase = Client( \n\tapi_url=config.get(\"SUPABASE_URL\"),\n\tapi_key=config.get(\"SUPABASE_KEY\")\n)\n```\n\n## Reading Data\n### Fetch data: `select()`\n```python\n# Note: inside an async function\nerror, results = await (\n     supabase.table(\"cities\")\n     .select(\"*\")\n     .query()\n)\n```\n### Adding limits: `limit()`\n```python\n# Note: inside an async function\nerror, results = await (\n     supabase.table(\"cities\")\n     .select(\"*\")\n     .limit(5)\n     .query()\n)\n```\n## Filters\n```python\n# Note: inside an async function\nerror, results = await (\n     supabase.table(\"cities\")\n     .select(\"*\")\n    # Filters\n    # .eq('column', 'Equal to')\n    # .gt('column', 'Greater than')\n    # .lt('column', 'Less than')\n    # .gte('column', 'Greater than or equal to')\n    # .lte('column', 'Less than or equal to')\n    # .like('column', '%CaseSensitive%')\n    # .ilike('column', '%CaseInsensitive%')\n    # .neq('column', 'Not equal to')\n    .query()\n)\n```\n## Inserting Data\n### Create data: `insert()`\n```python\nerror, result = await (\n      supabase.table(\"cities\")\n      .insert([{\"name\": \"The Shire\", \"country_id\": 554}])\n)\n```\n\n## Modify data: `update()`\n### Performs an UPDATE operation on the table.\n```python\nerror, result = await (\n      supabase.table(\"cities\")\n      .update(\n      \t{ 'name': 'Auckland' }, # Selection/Target column\n      \t{ 'name': 'Middle Earth' } # Update\n      )\n)\n```\n## Delete data: `delete()`\n### Performs a DELETE operation on the table.\n```python\nerror, result = await (\n      supabase.table(\"cities\")\n      .delete({ 'name': 'Middle Earth' })\n)\n```\n\n## License\nSupabase-Client is licensed under the [MIT License](https://mit-license.org/)\n\nSee [Supabase Docs](https://supabase.io/docs/guides/api)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeosariel%2Fsupabase-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeosariel%2Fsupabase-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeosariel%2Fsupabase-client/lists"}