diff options
Diffstat (limited to '.venv/lib/python3.12/site-packages/storage3-0.11.3.dist-info')
5 files changed, 113 insertions, 0 deletions
diff --git a/.venv/lib/python3.12/site-packages/storage3-0.11.3.dist-info/INSTALLER b/.venv/lib/python3.12/site-packages/storage3-0.11.3.dist-info/INSTALLER new file mode 100644 index 00000000..a1b589e3 --- /dev/null +++ b/.venv/lib/python3.12/site-packages/storage3-0.11.3.dist-info/INSTALLER @@ -0,0 +1 @@ +pip diff --git a/.venv/lib/python3.12/site-packages/storage3-0.11.3.dist-info/LICENSE b/.venv/lib/python3.12/site-packages/storage3-0.11.3.dist-info/LICENSE new file mode 100644 index 00000000..ddeba6a0 --- /dev/null +++ b/.venv/lib/python3.12/site-packages/storage3-0.11.3.dist-info/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Supabase + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/.venv/lib/python3.12/site-packages/storage3-0.11.3.dist-info/METADATA b/.venv/lib/python3.12/site-packages/storage3-0.11.3.dist-info/METADATA new file mode 100644 index 00000000..00ad24b9 --- /dev/null +++ b/.venv/lib/python3.12/site-packages/storage3-0.11.3.dist-info/METADATA @@ -0,0 +1,54 @@ +Metadata-Version: 2.1 +Name: storage3 +Version: 0.11.3 +Summary: Supabase Storage client for Python. +Home-page: https://supabase.github.io/storage-py +License: MIT +Author: Joel Lee +Author-email: joel@joellee.org +Requires-Python: >=3.9,<4.0 +Classifier: License :: OSI Approved :: MIT License +Classifier: Operating System :: OS Independent +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 +Classifier: Programming Language :: Python :: 3.13 +Requires-Dist: httpx[http2] (>=0.26,<0.29) +Requires-Dist: python-dateutil (>=2.8.2,<3.0.0) +Project-URL: Documentation, https://supabase.github.io/storage-py +Project-URL: Repository, https://github.com/supabase/storage-py +Description-Content-Type: text/markdown + +# Storage-py + +Python Client library to interact with Supabase Storage. + + + +## How to use + +As 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) + + +```python3 +from storage3 import create_client + +url = "https://<your_supabase_id>.supabase.co/storage/v1" +key = "<your api key>" +headers = {"apiKey": key, "Authorization": f"Bearer {key}"} + +# pass in is_async=True to create an async client +storage_client = create_client(url, headers, is_async=False) + +storage_client.list_buckets() +``` + +### Uploading files +When uploading files, make sure to set the correct mimetype by using the `file_options` argument: +```py +storage_client.from_("bucket").upload("/folder/file.png", file_object, {"content-type": "image/png"}) +``` +If no mime type is given, the default `text/plain` will be used. + diff --git a/.venv/lib/python3.12/site-packages/storage3-0.11.3.dist-info/RECORD b/.venv/lib/python3.12/site-packages/storage3-0.11.3.dist-info/RECORD new file mode 100644 index 00000000..30f9d1a5 --- /dev/null +++ b/.venv/lib/python3.12/site-packages/storage3-0.11.3.dist-info/RECORD @@ -0,0 +1,33 @@ +storage3-0.11.3.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
+storage3-0.11.3.dist-info/LICENSE,sha256=M03Wgg4urqsgZOfFkAG4EFZnKKKKQafB2_abvuF9CTY,1065
+storage3-0.11.3.dist-info/METADATA,sha256=QXym6sbGpFTIRmmtMyK5j8ELL6sGuTZaFUSc6XIu-0w,1808
+storage3-0.11.3.dist-info/RECORD,,
+storage3-0.11.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
+storage3/__init__.py,sha256=6f8cs2X68X-oqz3YfwQRybc0w4oE0C94SqOdRHm5DGg,1222
+storage3/__pycache__/__init__.cpython-312.pyc,,
+storage3/__pycache__/constants.cpython-312.pyc,,
+storage3/__pycache__/exceptions.cpython-312.pyc,,
+storage3/__pycache__/types.cpython-312.pyc,,
+storage3/__pycache__/utils.cpython-312.pyc,,
+storage3/__pycache__/version.cpython-312.pyc,,
+storage3/_async/__init__.py,sha256=TZiUEZTaGOmiwssRI2RHxq-wHhwwT8ilQt1ThxRSzP8,61
+storage3/_async/__pycache__/__init__.cpython-312.pyc,,
+storage3/_async/__pycache__/bucket.cpython-312.pyc,,
+storage3/_async/__pycache__/client.cpython-312.pyc,,
+storage3/_async/__pycache__/file_api.cpython-312.pyc,,
+storage3/_async/bucket.py,sha256=FiAO9YogJpkfWs4uqT_kX64kamoI_4qeQGyJEaZ_6Cg,3989
+storage3/_async/client.py,sha256=wBkltOuCb9ZD6meveKzdTdMrqC3c3qOkSbAX4csISGs,1778
+storage3/_async/file_api.py,sha256=dUSkDTPgGCi5tNGTC7-FkIsz4DQgaSzensBwefPn7Zg,17633
+storage3/_sync/__init__.py,sha256=Ch9jXcmr8nDlpnUnvC6bCZRgMSVwJ2tdlmksljOyqPw,59
+storage3/_sync/__pycache__/__init__.cpython-312.pyc,,
+storage3/_sync/__pycache__/bucket.cpython-312.pyc,,
+storage3/_sync/__pycache__/client.cpython-312.pyc,,
+storage3/_sync/__pycache__/file_api.cpython-312.pyc,,
+storage3/_sync/bucket.py,sha256=nV4efnS9_z_ADkSKSfzpDZdzxkG0XU1zww-mCiUx8Fk,3896
+storage3/_sync/client.py,sha256=6s40tMo_ac6eCbdwL-r5h4WSOZCjBSOgAp-cOAPQKoE,1735
+storage3/_sync/file_api.py,sha256=SDOzlPOPoKyvyZyjOGgwBmdcjkn4ijyMsh1Aj69OmjA,17439
+storage3/constants.py,sha256=Y0MYEbBaHxPwazSNG0uFzGBC3hKdaHNKhFHAfvaRlzU,288
+storage3/exceptions.py,sha256=a36miH3_6AlTP0QMCdXxZbZHm4DlvUEEZP4yheDmu9I,857
+storage3/types.py,sha256=Q7HimTY2bLDESkYx0tudy2Ub9bVYIhZJy9Bl9FL_PrE,2575
+storage3/utils.py,sha256=e5JcDhOwRQWNOQv3yZZhyafcvkdMkTTMVhdKgT6N4U0,285
+storage3/version.py,sha256=N8J_OSUK3rX7HooOG0MQjNduauoiC9lYFqGC3GybZV4,53
diff --git a/.venv/lib/python3.12/site-packages/storage3-0.11.3.dist-info/WHEEL b/.venv/lib/python3.12/site-packages/storage3-0.11.3.dist-info/WHEEL new file mode 100644 index 00000000..8b9b3a1b --- /dev/null +++ b/.venv/lib/python3.12/site-packages/storage3-0.11.3.dist-info/WHEEL @@ -0,0 +1,4 @@ +Wheel-Version: 1.0 +Generator: poetry-core 1.9.1 +Root-Is-Purelib: true +Tag: py3-none-any |