aboutsummaryrefslogtreecommitdiff
path: root/.venv/lib/python3.12/site-packages/postgrest-0.19.3.dist-info
diff options
context:
space:
mode:
Diffstat (limited to '.venv/lib/python3.12/site-packages/postgrest-0.19.3.dist-info')
-rw-r--r--.venv/lib/python3.12/site-packages/postgrest-0.19.3.dist-info/INSTALLER1
-rw-r--r--.venv/lib/python3.12/site-packages/postgrest-0.19.3.dist-info/LICENSE21
-rw-r--r--.venv/lib/python3.12/site-packages/postgrest-0.19.3.dist-info/METADATA135
-rw-r--r--.venv/lib/python3.12/site-packages/postgrest-0.19.3.dist-info/RECORD38
-rw-r--r--.venv/lib/python3.12/site-packages/postgrest-0.19.3.dist-info/WHEEL4
5 files changed, 199 insertions, 0 deletions
diff --git a/.venv/lib/python3.12/site-packages/postgrest-0.19.3.dist-info/INSTALLER b/.venv/lib/python3.12/site-packages/postgrest-0.19.3.dist-info/INSTALLER
new file mode 100644
index 00000000..a1b589e3
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/postgrest-0.19.3.dist-info/INSTALLER
@@ -0,0 +1 @@
+pip
diff --git a/.venv/lib/python3.12/site-packages/postgrest-0.19.3.dist-info/LICENSE b/.venv/lib/python3.12/site-packages/postgrest-0.19.3.dist-info/LICENSE
new file mode 100644
index 00000000..ddeba6a0
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/postgrest-0.19.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/postgrest-0.19.3.dist-info/METADATA b/.venv/lib/python3.12/site-packages/postgrest-0.19.3.dist-info/METADATA
new file mode 100644
index 00000000..824dee1e
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/postgrest-0.19.3.dist-info/METADATA
@@ -0,0 +1,135 @@
+Metadata-Version: 2.1
+Name: postgrest
+Version: 0.19.3
+Summary: PostgREST client for Python. This library provides an ORM interface to PostgREST.
+Home-page: https://github.com/supabase/postgrest-py
+License: MIT
+Author: Lương Quang Mạnh
+Author-email: luongquangmanh85@gmail.com
+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: deprecation (>=2.1.0,<3.0.0)
+Requires-Dist: httpx[http2] (>=0.26,<0.29)
+Requires-Dist: pydantic (>=1.9,<3.0)
+Requires-Dist: strenum (>=0.4.9,<0.5.0) ; python_version < "3.11"
+Project-URL: Documentation, https://postgrest-py.rtfd.io
+Project-URL: Repository, https://github.com/supabase/postgrest-py
+Description-Content-Type: text/markdown
+
+# postgrest-py
+
+[PostgREST](https://postgrest.org) client for Python. This library provides an "ORM-like" interface to PostgREST.
+
+## INSTALLATION
+
+### Requirements
+
+- Python >= 3.9
+- PostgreSQL >= 13
+- PostgREST >= 11
+
+### Local PostgREST server
+
+If you want to use a local PostgREST server for development, you can use our preconfigured instance via Docker Compose.
+
+```sh
+docker-compose up
+```
+
+Once Docker Compose started, PostgREST is accessible at <http://localhost:3000>.
+
+### Instructions
+
+#### With Poetry (recommended)
+
+```sh
+poetry add postgrest
+```
+
+#### With Pip
+
+```sh
+pip install postgrest
+```
+
+## USAGE
+
+### Getting started
+
+```py
+import asyncio
+from postgrest import AsyncPostgrestClient
+
+async def main():
+ async with AsyncPostgrestClient("http://localhost:3000") as client:
+ r = await client.from_("countries").select("*").execute()
+ countries = r.data
+
+asyncio.run(main())
+```
+
+### Create
+
+```py
+await client.from_("countries").insert({ "name": "Việt Nam", "capital": "Hà Nội" }).execute()
+```
+
+### Read
+
+```py
+r = await client.from_("countries").select("id", "name").execute()
+countries = r.data
+```
+
+### Update
+
+```py
+await client.from_("countries").update({"capital": "Hà Nội"}).eq("name", "Việt Nam").execute()
+```
+
+### Delete
+
+```py
+await client.from_("countries").delete().eq("name", "Việt Nam").execute()
+```
+
+### General filters
+
+### Stored procedures (RPC)
+```py
+await client.rpc("foobar", {"arg1": "value1", "arg2": "value2"}).execute()
+```
+
+## DEVELOPMENT
+
+```sh
+git clone https://github.com/supabase/postgrest-py.git
+cd postgrest-py
+poetry install
+poetry run pre-commit install
+```
+
+### Testing
+
+```sh
+poetry run pytest
+```
+
+## CHANGELOG
+
+Read more [here](https://github.com/supabase/postgrest-py/blob/main/CHANGELOG.md).
+
+## SPONSORS
+
+We are building the features of Firebase using enterprise-grade, open source products. We support existing communities wherever possible, and if the products don’t exist we build them and open source them ourselves. Thanks to these sponsors who are making the OSS ecosystem better for everyone.
+
+[![Worklife VC](https://user-images.githubusercontent.com/10214025/90451355-34d71200-e11e-11ea-81f9-1592fd1e9146.png)](https://www.worklife.vc)
+[![New Sponsor](https://user-images.githubusercontent.com/10214025/90518111-e74bbb00-e198-11ea-8f88-c9e3c1aa4b5b.png)](https://github.com/sponsors/supabase)
+
diff --git a/.venv/lib/python3.12/site-packages/postgrest-0.19.3.dist-info/RECORD b/.venv/lib/python3.12/site-packages/postgrest-0.19.3.dist-info/RECORD
new file mode 100644
index 00000000..5d060f64
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/postgrest-0.19.3.dist-info/RECORD
@@ -0,0 +1,38 @@
+postgrest-0.19.3.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
+postgrest-0.19.3.dist-info/LICENSE,sha256=M03Wgg4urqsgZOfFkAG4EFZnKKKKQafB2_abvuF9CTY,1065
+postgrest-0.19.3.dist-info/METADATA,sha256=qCrgpwISY_nYYt8Jn4d8l81jIAkqzFFcPmYOUKev0Tk,3459
+postgrest-0.19.3.dist-info/RECORD,,
+postgrest-0.19.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
+postgrest/__init__.py,sha256=30MCuUqc_tEQZxJFN01F9DXucq1iMMKDeMoW43TYSwk,950
+postgrest/__pycache__/__init__.cpython-312.pyc,,
+postgrest/__pycache__/base_client.cpython-312.pyc,,
+postgrest/__pycache__/base_request_builder.cpython-312.pyc,,
+postgrest/__pycache__/constants.cpython-312.pyc,,
+postgrest/__pycache__/deprecated_client.cpython-312.pyc,,
+postgrest/__pycache__/deprecated_get_request_builder.cpython-312.pyc,,
+postgrest/__pycache__/exceptions.cpython-312.pyc,,
+postgrest/__pycache__/types.cpython-312.pyc,,
+postgrest/__pycache__/utils.cpython-312.pyc,,
+postgrest/__pycache__/version.cpython-312.pyc,,
+postgrest/_async/__init__.py,sha256=U4S_2y3zgLZVfMenHRaJFBW8yqh2mUBuI291LGQVOJ8,35
+postgrest/_async/__pycache__/__init__.cpython-312.pyc,,
+postgrest/_async/__pycache__/client.cpython-312.pyc,,
+postgrest/_async/__pycache__/request_builder.cpython-312.pyc,,
+postgrest/_async/client.py,sha256=sKeT37vnWW2X1p31tGG_HT3f60BoDlHFK-Vz1F_WdqE,4147
+postgrest/_async/request_builder.py,sha256=kTUS3V0lVaBkVaXHgI0vD7RTOesyKdwfW_ZeBIC2RhA,14239
+postgrest/_sync/__init__.py,sha256=U4S_2y3zgLZVfMenHRaJFBW8yqh2mUBuI291LGQVOJ8,35
+postgrest/_sync/__pycache__/__init__.cpython-312.pyc,,
+postgrest/_sync/__pycache__/client.cpython-312.pyc,,
+postgrest/_sync/__pycache__/request_builder.cpython-312.pyc,,
+postgrest/_sync/client.py,sha256=gZn_TsLad0zGLkhSgl4lThv3hiEkQC7Hk0j7Ub2yE9I,4101
+postgrest/_sync/request_builder.py,sha256=UfEiJft5nrduk9a8C5oXmIuXQ1gnd-Q2R7VyEC9FanU,14171
+postgrest/base_client.py,sha256=fOQr1DPkRFGopYsZmOjBnAc1-SrNjbvCQZM64LoeJh0,2313
+postgrest/base_request_builder.py,sha256=uO55-jO3HVWiPhvIOPEVEwx7IKtaGhleVs8b8FllcvI,23739
+postgrest/constants.py,sha256=VZrlQtgGV-qwcjwqhlJOZBhPHzbSICjDJbabcAlPMUY,153
+postgrest/deprecated_client.py,sha256=6sC3m36fiUrwORHYOSyXjUXC21f4BfdTCEMgIedN8qE,416
+postgrest/deprecated_get_request_builder.py,sha256=ycFiTJSfO4sWlQGSQMPVWj3oXLQAv1FVIi0vgT8o26A,429
+postgrest/exceptions.py,sha256=T4ORME29C_CyIJUCWlDXoS3qSyv7LxMov1xLyMGvfho,1510
+postgrest/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
+postgrest/types.py,sha256=o1CCqNb7TAfdaCoYBF137kDio37dWszGNRaQJsDhHqY,986
+postgrest/utils.py,sha256=BIRLcBUix4vPqJq_6R0Lu_pl2G1qStt0q8Z0L2CMDaM,1953
+postgrest/version.py,sha256=8loUwTt8RBPU82paGHFWGzAdE2f4dhBB22uGc13UYkU,53
diff --git a/.venv/lib/python3.12/site-packages/postgrest-0.19.3.dist-info/WHEEL b/.venv/lib/python3.12/site-packages/postgrest-0.19.3.dist-info/WHEEL
new file mode 100644
index 00000000..8b9b3a1b
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/postgrest-0.19.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