{ "info": { "author": "City of Austin", "author_email": "transportation.data@austintexas.gov", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: Public Domain", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Pypgrest\nA python client for interacting with PostgREST APIs.\n\n## Installation\n```\n$ pip install pypgrest\n```\n\n## Usage\n```python\n>>> from pypgrest import Postgrest\n\n>>> pgrest = Postgrest(\"https://api.tacos.com\", auth=\"secretsalsa\")\n\n# See postgrest docs for supported query params\n>>> params = {\n \"select\" : \"name,tortilla,cost\",\n \"tortilla\" : \"is.corn\",\n \"limit\" : 100\n }\n\n# Supported methods are select, insert, update, and upsert\n>>> pgrest.select(params=params)\n[{ \"name\" : \"al pastor\", \"tortilla\" : \"corn\", \"cost\" : \"2.01\" }, ... ]\n\n>>> payload = [{ \"id\" : 23, \"cost\" : \"2.25\" }, { \"id\" : 26, \"cost\" : \"1.25\" }]\n\n>>> pgrest.upsert(payload)\n[{ \"id\" : 23, \"cost\" : \"2.25\", \"name\" : \"al pastor\", ... }, ... ]\n\n# You can inspect the `Requests` response object like so:\n>>> pgrest.res.status_code\n201\n\n# If results are paginated the client will continue to request until the specified\n# limit (default 1000) is met.\n>>> pgrest.select(params={\"limit\" : 1000})\n```\n\n## License\n\nAs a work of the City of Austin, this project is in the public domain within the United States.\n\nAdditionally, we waive copyright and related rights of the work worldwide through the [CC0 1.0 Universal public domain dedication](https://creativecommons.org/publicdomain/zero/1.0/).\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cityofaustin/py-postgrest", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "pypgrest", "package_url": "https://pypi.org/project/pypgrest/", "platform": "", "project_url": "https://pypi.org/project/pypgrest/", "project_urls": { "Homepage": "https://github.com/cityofaustin/py-postgrest" }, "release_url": "https://pypi.org/project/pypgrest/0.0.3/", "requires_dist": null, "requires_python": "", "summary": "A python client for interacting with PostgREST APIs.", "version": "0.0.3" }, "last_serial": 4576117, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "626964a6b155d9ef08f9d2b4d83b2dcb", "sha256": "357ad7b7cf11a462ee23be3eb83c26da8a22abaa68e721d0ef7fd42820ace0e2" }, "downloads": -1, "filename": "pypgrest-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "626964a6b155d9ef08f9d2b4d83b2dcb", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3316, "upload_time": "2018-12-01T22:30:36", "url": "https://files.pythonhosted.org/packages/4d/d1/7359e0e1258175a0254bafe1c6cb5d6e103c89cbe2879c948cc2bb4eed9b/pypgrest-0.0.1-py2.py3-none-any.whl" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "b3f67e352e83b0d4c2c6c5a1e87828db", "sha256": "1ddf07fc96faeb97959063a265fb99e965167973d63f0351667a5c24fd0ace6c" }, "downloads": -1, "filename": "pypgrest-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b3f67e352e83b0d4c2c6c5a1e87828db", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3295, "upload_time": "2018-12-02T01:46:51", "url": "https://files.pythonhosted.org/packages/ae/79/aaae4dabaebe85cbebb75c82df5857c8b61bfe45790390e3664dc851ee75/pypgrest-0.0.2-py2.py3-none-any.whl" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "5bc61bd9b9ece28943d59d9ba41b3a5b", "sha256": "d549b126b81ba485c4c8103a5280955179c994a33bc8c8c3fe7605a1fa560d95" }, "downloads": -1, "filename": "pypgrest-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5bc61bd9b9ece28943d59d9ba41b3a5b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4770, "upload_time": "2018-12-08T21:28:18", "url": "https://files.pythonhosted.org/packages/8c/d3/3e4ea1242a5086300f4f936e39f82dd6b01a64a1236a64568d1f77712149/pypgrest-0.0.3-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5bc61bd9b9ece28943d59d9ba41b3a5b", "sha256": "d549b126b81ba485c4c8103a5280955179c994a33bc8c8c3fe7605a1fa560d95" }, "downloads": -1, "filename": "pypgrest-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5bc61bd9b9ece28943d59d9ba41b3a5b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4770, "upload_time": "2018-12-08T21:28:18", "url": "https://files.pythonhosted.org/packages/8c/d3/3e4ea1242a5086300f4f936e39f82dd6b01a64a1236a64568d1f77712149/pypgrest-0.0.3-py2.py3-none-any.whl" } ] }