{"id":14968768,"url":"https://github.com/supabase/storage-py","last_synced_at":"2025-05-16T09:06:01.396Z","repository":{"id":38314709,"uuid":"441509150","full_name":"supabase/storage-py","owner":"supabase","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-07T00:49:31.000Z","size":1402,"stargazers_count":52,"open_issues_count":4,"forks_count":21,"subscribers_count":21,"default_branch":"main","last_synced_at":"2025-05-09T16:21:42.373Z","etag":null,"topics":["supabase","supabase-storage"],"latest_commit_sha":null,"homepage":"https://supabase-community.github.io/storage-py/","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/supabase.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["supabase"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2021-12-24T16:20:33.000Z","updated_at":"2025-05-04T23:18:57.000Z","dependencies_parsed_at":"2024-02-28T13:50:40.889Z","dependency_job_id":"f648d987-c39f-41ff-a2a7-020140c7d3ae","html_url":"https://github.com/supabase/storage-py","commit_stats":{"total_commits":315,"total_committers":22,"mean_commits":"14.318181818181818","dds":0.6571428571428571,"last_synced_commit":"26991266b7934a1409dd98bdab4cc606a92d21ad"},"previous_names":["supabase/storage-py","supabase-community/storage-py"],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase%2Fstorage-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase%2Fstorage-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase%2Fstorage-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase%2Fstorage-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/supabase","download_url":"https://codeload.github.com/supabase/storage-py/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254050902,"owners_count":22006377,"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":["supabase","supabase-storage"],"created_at":"2024-09-24T13:40:31.210Z","updated_at":"2025-05-16T09:06:01.361Z","avatar_url":"https://github.com/supabase.png","language":"Python","funding_links":["https://github.com/sponsors/supabase"],"categories":[],"sub_categories":[],"readme":"# Storage-py\n\nPython Client library to interact with Supabase Storage.\n\n\n\n## How to use\n\nAs it takes some effort to get the headers. We suggest that you use the storage functionality through the main [Supabase Python Client](https://github.com/supabase-community/supabase-py)\n\n\n```python3\nfrom storage3 import create_client\n\nurl = \"https://\u003cyour_supabase_id\u003e.supabase.co/storage/v1\"\nkey = \"\u003cyour api key\u003e\"\nheaders = {\"apiKey\": key, \"Authorization\": f\"Bearer {key}\"}\n\n# pass in is_async=True to create an async client\nstorage_client = create_client(url, headers, is_async=False)\n\nstorage_client.list_buckets()\n```\n\n### Uploading files\nWhen uploading files, make sure to set the correct mimetype by using the `file_options` argument:\n```py\nstorage_client.from_(\"bucket\").upload(\"/folder/file.png\", file_object, {\"content-type\": \"image/png\"})\n```\nIf no mime type is given, the default `text/plain` will be used.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupabase%2Fstorage-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupabase%2Fstorage-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupabase%2Fstorage-py/lists"}