{ "info": { "author": "Syrus Akbary", "author_email": "me@syrusakbary.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries" ], "description": "WebOb-GraphQL\n=============\n\n|Build Status| |Coverage Status| |PyPI version|\n\nAdds GraphQL support to your WebOb (Pyramid, Pylons, ...) application.\n\nInstallation\n------------\n\nFor instaling WebOb-GraphQL, just run this command in your shell\n\n.. code:: bash\n\n pip install \"webob-graphql>=1.0.dev\"\n\nUsage\n-----\n\nJust use the ``serve_graphql_request`` function from ``webob_graphql``\n\nPyramid\n~~~~~~~\n\n.. code:: python\n\n from pyramid.view import view_config\n\n from webob_graphql import serve_graphql_request\n\n\n @view_config(\n route_name='graphql',\n # The serve_graphql_request method will detect what's the best renderer\n # to use, so it will do the json render automatically.\n # In summary, don't use the renderer='json' here :)\n )\n def graphql_view(request):\n return serve_graphql_request(request, schema)\n\n # Optional, for adding batch query support (used in Apollo-Client)\n return serve_graphql_request(request, schema, batch_enabled=True)\n\nSupported options\n~~~~~~~~~~~~~~~~~\n\n- ``schema``: The ``GraphQLSchema`` object that you want the view to\n execute when it gets a valid request.\n- ``context``: A value to pass as the ``context`` to the ``graphql()``\n function.\n- ``root_value``: The ``root_value`` you want to provide to\n ``executor.execute``.\n- ``format_error``: If you want to use a custom error formatter.\n- ``pretty``: Whether or not you want the response to be pretty printed\n JSON.\n- ``executor``: The ``Executor`` that you want to use to execute\n queries.\n- ``graphiql_enabled``: If ``True`` (default), may present\n `GraphiQL `__ when loaded\n directly from a browser (a useful tool for debugging and\n exploration).\n- ``render_graphiql``: A custom function for rendering GraphiQL (this\n function should have the arguments ``result`` and ``params``).\n- ``batch_enabled``: Enable batch support (for using in\n `Apollo-Client `__\n or\n `ReactRelayNetworkLayer `__)\n\n.. |Build Status| image:: https://travis-ci.org/graphql-python/webob-graphql.svg?branch=master\n :target: https://travis-ci.org/graphql-python/webob-graphql\n.. |Coverage Status| image:: https://coveralls.io/repos/graphql-python/webob-graphql/badge.svg?branch=master&service=github\n :target: https://coveralls.io/github/graphql-python/webob-graphql?branch=master\n.. |PyPI version| image:: https://badge.fury.io/py/webob-graphql.svg\n :target: https://badge.fury.io/py/webob-graphql\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/graphql-python/webob-graphql/releases", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/graphql-python/webob-graphql", "keywords": "api graphql protocol rest webob", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "WebOb-GraphQL", "package_url": "https://pypi.org/project/WebOb-GraphQL/", "platform": "any", "project_url": "https://pypi.org/project/WebOb-GraphQL/", "project_urls": { "Download": "https://github.com/graphql-python/webob-graphql/releases", "Homepage": "https://github.com/graphql-python/webob-graphql" }, "release_url": "https://pypi.org/project/WebOb-GraphQL/1.0/", "requires_dist": null, "requires_python": "", "summary": "Adds GraphQL support to your WebOb (Pyramid/Pylons/...) application", "version": "1.0" }, "last_serial": 2988948, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "4ce46f650d538bd2792da630eeafde50", "sha256": "1e1f117bc923dd32862c61c7058dc2ba3104428d8e8713a1e27f0c4586378161" }, "downloads": -1, "filename": "WebOb-GraphQL-1.0.tar.gz", "has_sig": false, "md5_digest": "4ce46f650d538bd2792da630eeafde50", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7291, "upload_time": "2017-06-30T02:38:59", "url": "https://files.pythonhosted.org/packages/a7/79/e40d2c212e5c800716c182173ade1185cdb836dd60a3ab04e2316d8a9375/WebOb-GraphQL-1.0.tar.gz" } ], "1.0.dev20170404001": [ { "comment_text": "", "digests": { "md5": "ba7f801efa94fdd564a4991b7eb60857", "sha256": "28401d9b88b8d92a999e96efede784e29a8783525cbe478a2fa0c9315884fd82" }, "downloads": -1, "filename": "WebOb-GraphQL-1.0.dev20170404001.tar.gz", "has_sig": false, "md5_digest": "ba7f801efa94fdd564a4991b7eb60857", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7142, "upload_time": "2017-04-05T07:07:07", "url": "https://files.pythonhosted.org/packages/80/93/b0cf39ff70b61a572cab64e47ebc37b1687d8496f16f2f42cf2616490a81/WebOb-GraphQL-1.0.dev20170404001.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4ce46f650d538bd2792da630eeafde50", "sha256": "1e1f117bc923dd32862c61c7058dc2ba3104428d8e8713a1e27f0c4586378161" }, "downloads": -1, "filename": "WebOb-GraphQL-1.0.tar.gz", "has_sig": false, "md5_digest": "4ce46f650d538bd2792da630eeafde50", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7291, "upload_time": "2017-06-30T02:38:59", "url": "https://files.pythonhosted.org/packages/a7/79/e40d2c212e5c800716c182173ade1185cdb836dd60a3ab04e2316d8a9375/WebOb-GraphQL-1.0.tar.gz" } ] }