postgrest-3.0.0a1


توضیحات

PostgREST client for Python. This library provides an ORM interface to PostgREST.
ویژگی مقدار
سیستم عامل OS Independent
نام فایل postgrest-3.0.0a1
نام postgrest
نسخه کتابخانه 3.0.0a1
نگهدارنده ['Leonardo Santiago']
ایمیل نگهدارنده ['Leonardo Santiago <leonardo.santiago@supabase.io>']
نویسنده Lương Quang Mạnh, Joel Lee, Anand, Oliver Rice, Andrew Smith
ایمیل نویسنده Lương Quang Mạnh <luongquangmanh85@gmail.com>, Joel Lee <joel@joellee.org>, Andrew Smith <a.smith@silentworks.co.uk>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/postgrest/
مجوز -
# 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 uv (recommended) ```sh uv 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() ``` ## 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)


نیازمندی

مقدار نام
- httpx[http2]<0.29,>=0.26
- deprecation>=2.1.0
- pydantic<3.0,>=1.9
ython_full_versio strenum>=0.4.9;
- yarl>=1.20.1


زبان مورد نیاز

مقدار نام
>=3.9 Python


نحوه نصب


نصب پکیج whl postgrest-3.0.0a1:

    pip install postgrest-3.0.0a1.whl


نصب پکیج tar.gz postgrest-3.0.0a1:

    pip install postgrest-3.0.0a1.tar.gz