{"id":26086826,"url":"https://github.com/liqtags/supabased","last_synced_at":"2026-05-16T08:31:17.104Z","repository":{"id":212382431,"uuid":"731302046","full_name":"liqtags/supabased","owner":"liqtags","description":"A Python Helper for Supabase","archived":false,"fork":false,"pushed_at":"2023-12-16T16:29:34.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-18T21:13:21.337Z","etag":null,"topics":["python","supabase","supabase-python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liqtags.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-13T19:22:41.000Z","updated_at":"2024-06-26T20:48:04.000Z","dependencies_parsed_at":"2023-12-16T17:38:16.170Z","dependency_job_id":null,"html_url":"https://github.com/liqtags/supabased","commit_stats":null,"previous_names":["0xlino/supabased","liqtags/supabased"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/liqtags/supabased","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liqtags%2Fsupabased","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liqtags%2Fsupabased/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liqtags%2Fsupabased/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liqtags%2Fsupabased/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liqtags","download_url":"https://codeload.github.com/liqtags/supabased/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liqtags%2Fsupabased/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33095276,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["python","supabase","supabase-python"],"created_at":"2025-03-09T07:18:29.067Z","updated_at":"2026-05-16T08:31:17.089Z","avatar_url":"https://github.com/liqtags.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Supabased\nA Python Helper for Supabase\n\nSetup\n-----\n\nBefore running the script, make sure to set up the required environment variables: `SUPABASE_URL` and `SUPABASE_KEY_SERVICE`.\n\nFunctions\n---------\n\n### 1\\. `get_env_value(key)`\n\n*   Retrieves the value of the specified environment variable.\n*   Parameters:\n    *   `key`: The name of the environment variable.\n*   Returns:\n    *   The value of the environment variable or a default message if the variable is not found.\n\n### 2\\. `create_supabase_client() -\u003e Client`\n\n*   Creates and returns a Supabase client using the provided Supabase URL and service key.\n\n### 3\\. Encryption and Decryption\n\n*   `encrypt(message: bytes, key: bytes) -\u003e bytes`\n    *   Encrypts a message using the provided key.\n*   `decrypt(token: bytes, key: bytes) -\u003e bytes`\n    *   Decrypts a token using the provided key.\n\n### 4\\. `check_if_data_exists_on_supbase(supaClient, table_name, column_name, column_value)`\n\n*   Checks if data with the specified column value exists in the specified table.\n*   Parameters:\n    *   `supaClient`: Supabase client.\n    *   `table_name`: Name of the table.\n    *   `column_name`: Name of the column.\n    *   `column_value`: Value to check for.\n*   Returns:\n    *   `True` if data exists, `False` otherwise.\n\n### 5\\. Database Operations\n\n#### Fetch Data\n\n*   `fetch_data(supaClient, table_name, column_name, column_value)`\n    *   Fetches data from the specified table based on column equality.\n*   `fetch_data_equals_to(supaClient, table_name, column_name, column_value)`\n    *   Fetches data where the column is equal to a value.\n*   Additional functions for various comparison operations (`neq`, `gt`, `lt`, `gte`, `lte`, `like`, `ilike`, `is_`, `is_in`, `contains`, `contained_by`).\n\n#### Insert, Update, Upsert, and Delete\n\n*   `insert_data(supaClient, table_name, data)`\n*   `update_data(supaClient, table_name, column_name, column_value, data)`\n*   `upsert_data(supaClient, table_name, column_name, column_value, data)`\n*   `delete_data(supaClient, table_name, column_name, column_value)`\n\n#### Order and Limit\n\n*   `fetch_data_order_the_results(supaClient, table_name, column_name, desc=True)`\n*   `fetch_data_limit_the_number_of_rows_returned(supaClient, table_name, limit=1)`\n\n#### Filter by Type\n\n*   `fetch_data_with_filter_type(supaClient, table_name, column_name, column_value, filter_type)`\n\n### 6\\. Authentication\n\n#### User Management\n\n*   `create_a_new_user(supaClient, email, password)`\n*   `sign_in_a_user(supaClient, email, password)`\n*   `sign_in_a_user_through_otp(supaClient, email)`\n*   `sign_in_a_user_through_0auth(supaClient, provider, access_token)`\n*   `sign_out_a_user(supaClient, access_token)`\n\n#### Session Management\n\n*   `verify_and_log_in_through_otp(supaClient, email, otp)`\n*   `retrieve_a_session(supaClient, access_token)`\n*   `retrieve_a_new_session(supaClient, refresh_token)`\n*   `retrieve_a_user(supaClient)`\n*   `set_the_session_data(supaClient, access_token, refresh_token, data)`\n\n### 7\\. Storage Operations\n\n#### Bucket Management\n\n*   `create_a_bucket(supaClient, bucket_name)`\n*   `retrieve_a_bucket(supaClient, bucket_name)`\n*   `list_all_buckets(supaClient)`\n*   `delete_a_bucket(supaClient, bucket_name)`\n*   `empty_a_bucket(supaClient, bucket_name)`\n\n#### File Operations\n\n*   `upload_a_file(supaClient, bucket_name, file, path, file_options)`\n*   `download_a_file(supaClient, bucket_name, source)`\n*   `list_all_files_in_a_bucket(supaClient, bucket_name)`\n*   `replace_an_existing_file(supaClient, bucket_name, file, path, file_options)`\n*   `move_an_existing_file(supaClient, bucket_name, source, destination)`\n*   `delete_files_in_a_bucket(supaClient, bucket_name, path)`\n\n#### URL Generation\n\n*   `create_a_signed_url(supaClient, bucket_name, filepath, expiry_duration)`\n*   `retrieve_public_url(supaClient, bucket_name, filepath)`\n\n### 8\\. Function Invocation\n\n*   `invoke_a_function(supaClient, function_name, invoke_options)`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliqtags%2Fsupabased","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliqtags%2Fsupabased","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliqtags%2Fsupabased/lists"}