{"id":21961776,"url":"https://github.com/moritzmhmk/wsgi-graphql","last_synced_at":"2026-05-20T14:15:20.845Z","repository":{"id":62589621,"uuid":"126831925","full_name":"moritzmhmk/wsgi-graphql","owner":"moritzmhmk","description":"WSGI GraphQL Application","archived":false,"fork":false,"pushed_at":"2018-03-28T13:52:12.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T20:30:33.695Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moritzmhmk.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-26T13:19:55.000Z","updated_at":"2019-05-21T19:09:02.000Z","dependencies_parsed_at":"2022-11-03T17:55:47.640Z","dependency_job_id":null,"html_url":"https://github.com/moritzmhmk/wsgi-graphql","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/moritzmhmk/wsgi-graphql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moritzmhmk%2Fwsgi-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moritzmhmk%2Fwsgi-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moritzmhmk%2Fwsgi-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moritzmhmk%2Fwsgi-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moritzmhmk","download_url":"https://codeload.github.com/moritzmhmk/wsgi-graphql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moritzmhmk%2Fwsgi-graphql/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266845403,"owners_count":23994062,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-29T10:18:01.890Z","updated_at":"2026-05-20T14:15:15.811Z","avatar_url":"https://github.com/moritzmhmk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"WSGI-GraphQL\n=============\n\nCreate a WSGI Application for a GraphQL schema.\n\nUsage\n-----\n\nUse the ``GraphQLApplication`` from ``wsgi_graphql``.\n\n.. code:: python\n\n    from wsgi_graphql import GraphQLApplication\n    application = GraphQLApplication(schema)\n\nOptions\n~~~~~~~\n\n- ``schema``: ``GraphQLSchema`` to serve with this application.\n- ``execute_options``: Dictionary of options to be passed to ``graphql.execute``\n  via ``graphql_server.run_http_query``. If the dictionary values are callable\n  they will be called (see example below).\n- ``format_error``: Function to format errors (defaults to ``graphql_server.default_format_error``).\n- ``encode``: Function to encode dictionary (defaults to ``graphql_server.json_encode``).\n\nAll ``execute_options`` can be ``callable`` (i.e. functions) and will receive\nthe current ``environ`` as an argument. This can be used for tasks like parsing\nauthentication tokens and inserting results as ``context_value``.\n\nThis snippet from the ``example.py`` sets the ``context_value`` to a dictionary\ncontaining the value of the request header ``greet``.\n\n.. code:: python\n\n  application = GraphQLApplication(schema, execute_options={\n      'context_value': lambda environ: {\n          'greet': environ.get('HTTP_GREET')\n      }\n  })\n\nThis ``curl`` command will return ``{\"data\":{\"hello\":\"world\"}}``.\n\n.. code:: bash\n\n  curl --request POST\\\n   --url http://localhost:8080\\\n   --header 'Content-Type: application/graphql'\\\n   --header 'greet: world'\\\n   --data 'query {hello}'\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoritzmhmk%2Fwsgi-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoritzmhmk%2Fwsgi-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoritzmhmk%2Fwsgi-graphql/lists"}