{ "info": { "author": "Mergify", "author_email": "", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "==========================\n GraphQL Utils for Python\n==========================\n\n.. image:: https://circleci.com/gh/Mergifyio/graphql-utils.svg?style=svg\n :target: https://circleci.com/gh/Mergifyio/graphql-utils\n\n.. image:: https://img.shields.io/endpoint.svg?url=https://gh.mergify.io/badges/Mergifyio/graphql-utils&style=flat\n :target: https://mergify.io\n :alt: Mergify Status\n\nThe ``graphql-utils`` Python package is a collection of utilities function for\ninteracting with GraphQL libraries. It is meant to be library agnostic so it\nshould work with whatever library or protocol you want.\n\n\nUsage\n=====\n\nMulti-requests\n--------------\n\nThe multi-requests module allows you to send a request multiple times with\ndifferent parameter. It also supports pagination, making sure that you'll get\nall the results for all the requests you sent.\n\nExample::\n\n import requests\n\n from graphql_utils import multi\n\n def requests_api(query):\n return requests.post(\"https://myapi.com/graphql\", json=query)\n\n userlist = (\"jd\", \"sileht\", \"foo\", \"bar\")\n\n results = multi.multi_query(\"\"\"\n user(login: \"{login}\") {{\n pets(first: 100{after}) {{\n nodes {{\n name\n }}\n pageInfo {{\n hasNextPage\n endCursor\n }}\n }}\n }}\"\"\",\n iterable=userlist,\n pageinfo_path=(\"pets\", \"pageInfo\"),\n send_fn=requests_api,\n )\n\n\nThis will send one GraphQL requests with 4 queries (one for each user from\n``userlist``). As `pageinfo_path` was specified, if any of the query does not\nreturn all information in one request, a new query using the ``endCursor`` will\nbe automatically sent to get the next results.\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/Mergifyio/graphql-utils", "keywords": "", "license": "BSD 3-Clause License", "maintainer": "", "maintainer_email": "", "name": "graphql-utils", "package_url": "https://pypi.org/project/graphql-utils/", "platform": "", "project_url": "https://pypi.org/project/graphql-utils/", "project_urls": { "Homepage": "https://github.com/Mergifyio/graphql-utils" }, "release_url": "https://pypi.org/project/graphql-utils/0.3/", "requires_dist": [ "pytest ; extra == 'test'" ], "requires_python": "", "summary": "Useful function when interacting with GraphQL APIs", "version": "0.3" }, "last_serial": 5989274, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "a8e30bc69faec5792d389fdca5ac4004", "sha256": "912292d3424c1572028fd6538ad02a7ad10e069d15a1e30a83957ff051ce9929" }, "downloads": -1, "filename": "graphql_utils-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "a8e30bc69faec5792d389fdca5ac4004", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3300, "upload_time": "2019-07-09T18:43:04", "url": "https://files.pythonhosted.org/packages/1a/f0/5530556dabc5845f9add2b782acb5a0a18c22fa9cf9a0d098b17b1fe34a9/graphql_utils-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7ae502ea6c7e46f91afeed32277bdee6", "sha256": "f2159b6862d1a6394b5b3563d1f720a097b405ac5b1903a0509416938cf914f0" }, "downloads": -1, "filename": "graphql-utils-0.1.tar.gz", "has_sig": false, "md5_digest": "7ae502ea6c7e46f91afeed32277bdee6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4101, "upload_time": "2019-07-09T18:43:06", "url": "https://files.pythonhosted.org/packages/75/2a/67b1189b02a228bf4a7a60f3c7c5ea07c94dd297b9a021d834f89c84b247/graphql-utils-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "c47a40272277bc58f57e4d14122d5aa1", "sha256": "50564c31ff7dc69f61ca2a00e031a4d538904f544b80c029a524a12990aaf6c9" }, "downloads": -1, "filename": "graphql_utils-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "c47a40272277bc58f57e4d14122d5aa1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7275, "upload_time": "2019-07-11T15:33:24", "url": "https://files.pythonhosted.org/packages/bc/a3/355936159ed61ebc7ba765546287489a10bba3d6e78a497e05616f0d4e70/graphql_utils-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1a3358fd26281b8cecbd612fb9c88ba1", "sha256": "ab35bd2843a8ab3c466349308f903c48327517576f5e6cbaf5bc01731c4b8110" }, "downloads": -1, "filename": "graphql-utils-0.2.tar.gz", "has_sig": false, "md5_digest": "1a3358fd26281b8cecbd612fb9c88ba1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7943, "upload_time": "2019-07-11T15:33:25", "url": "https://files.pythonhosted.org/packages/ca/d0/8e9aec784a653ed84256df51e705ca743860fceb1f6c13c9d7d91ea74db6/graphql-utils-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "c05bc01af5d9ff150418f5ca59148e98", "sha256": "ae1c5a506a116ae1b71deed88cfa454cd3121ae356244b22d7c3e7c56e968c78" }, "downloads": -1, "filename": "graphql_utils-0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "c05bc01af5d9ff150418f5ca59148e98", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7071, "upload_time": "2019-07-11T21:43:13", "url": "https://files.pythonhosted.org/packages/c0/83/34213ff0039bac38d9771629f1a9ccb4ac4a854a3e40d05c8b90d170966d/graphql_utils-0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9959e16f25961de8ac2ea8de6e5bef26", "sha256": "8830db89a72cd06527527687101ba2ea6c5c7af63e81f033d3c06a0d1c1d12ab" }, "downloads": -1, "filename": "graphql-utils-0.3.tar.gz", "has_sig": false, "md5_digest": "9959e16f25961de8ac2ea8de6e5bef26", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7689, "upload_time": "2019-07-11T21:43:15", "url": "https://files.pythonhosted.org/packages/f1/06/3629d476c9f621b9d5c3e83eaafee1cb7b8864883a5113f7d7c8f066b189/graphql-utils-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c05bc01af5d9ff150418f5ca59148e98", "sha256": "ae1c5a506a116ae1b71deed88cfa454cd3121ae356244b22d7c3e7c56e968c78" }, "downloads": -1, "filename": "graphql_utils-0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "c05bc01af5d9ff150418f5ca59148e98", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7071, "upload_time": "2019-07-11T21:43:13", "url": "https://files.pythonhosted.org/packages/c0/83/34213ff0039bac38d9771629f1a9ccb4ac4a854a3e40d05c8b90d170966d/graphql_utils-0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9959e16f25961de8ac2ea8de6e5bef26", "sha256": "8830db89a72cd06527527687101ba2ea6c5c7af63e81f033d3c06a0d1c1d12ab" }, "downloads": -1, "filename": "graphql-utils-0.3.tar.gz", "has_sig": false, "md5_digest": "9959e16f25961de8ac2ea8de6e5bef26", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7689, "upload_time": "2019-07-11T21:43:15", "url": "https://files.pythonhosted.org/packages/f1/06/3629d476c9f621b9d5c3e83eaafee1cb7b8864883a5113f7d7c8f066b189/graphql-utils-0.3.tar.gz" } ] }