{"id":14976234,"url":"https://github.com/phalt/gql_py","last_synced_at":"2025-10-08T19:40:13.889Z","repository":{"id":57435649,"uuid":"142445984","full_name":"phalt/gql_py","owner":"phalt","description":"GraphQL Client for Pythonistas","archived":false,"fork":false,"pushed_at":"2020-03-26T18:50:30.000Z","size":35,"stargazers_count":10,"open_issues_count":4,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-22T21:56:20.685Z","etag":null,"topics":["graphql","http","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/gql-py/","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/phalt.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-26T13:38:24.000Z","updated_at":"2021-01-12T08:26:24.000Z","dependencies_parsed_at":"2022-08-28T04:54:35.823Z","dependency_job_id":null,"html_url":"https://github.com/phalt/gql_py","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/phalt/gql_py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phalt%2Fgql_py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phalt%2Fgql_py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phalt%2Fgql_py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phalt%2Fgql_py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phalt","download_url":"https://codeload.github.com/phalt/gql_py/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phalt%2Fgql_py/sbom","scorecard":{"id":730465,"data":{"date":"2025-08-11","repo":{"name":"github.com/phalt/gql_py","commit":"be68774d8bd288650119a68d055eaf076246e973"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/17 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2022-43017 / GHSA-qwmp-2cf2-g9g6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 21 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T14:15:42.030Z","repository_id":57435649,"created_at":"2025-08-22T14:15:42.031Z","updated_at":"2025-08-22T14:15:42.031Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000704,"owners_count":26082805,"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-10-08T02:00:06.501Z","response_time":56,"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":["graphql","http","python"],"created_at":"2024-09-24T13:53:33.030Z","updated_at":"2025-10-08T19:40:13.857Z","avatar_url":"https://github.com/phalt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"🌐🐍 gql_py\n-------\n\n*GraphQL Client for Pythonistas*\n\ngql_py is a Pythonic interface around graphQL APIs.\n\nYou've got a graphQL API, and you want to talk to it, right? For those of us who love HTTP standards, GraphQL's use of HTTP is questionable at best. The goal of this library is to remove the fuss of HTTP so you can deal with graphQL directly. Just how graphQL's developers intended.\n\n\n.. image:: https://img.shields.io/pypi/v/gql_py.svg\n        :target: https://pypi.org/project/gql-py/\n\n.. image:: https://img.shields.io/pypi/pyversions/gql_py.svg\n        :target: https://pypi.org/project/gql-py/\n\n.. image:: https://img.shields.io/pypi/l/gql_py.svg\n        :target: https://pypi.org/project/gql-py/\n\n.. image:: https://img.shields.io/pypi/status/gql_py.svg\n        :target: https://pypi.org/project/gql-py/\n\n.. image:: https://circleci.com/gh/phalt/gql_py/tree/master.svg?style=svg\n        :target: https://circleci.com/gh/phalt/gql_py/tree/master\n\nInstalling the project is easy:\n\n.. code-block:: bash\n\n    pip install gql_py\n\nFull blown example:\n\n.. code-block:: python\n\n  from gql_py import Gql\n\n  gql = Gql(api='https://example.com/graphql')\n\n  query = '''\n  query ($bookId: ID!) {\n      book(id: $bookId) {\n        id\n        title\n        author\n      }\n    }\n  '''\n\n  variables = {\n    'book_id': '654'\n  }\n\n  response = qgl.send(query=query, variables=variables)\n\n  response.ok\n  \u003e\u003e\u003e True\n\n  response.errors\n  \u003e\u003e\u003e None\n\n  response.data\n  \u003e\u003e\u003e {'book': {'id': '654', 'title': 'Ursula K. Le Guin', 'title': 'A Wizard of Earthsea'}}\n\n\nYou can validate your graphql query string by passing the __validate__ flag in the __send__ method:\n\n.. code-block:: python\n\n    gpl.send(query=query, validate=True)\n    \u003e\u003e\u003e Traceback (most recent call last):\n    \u003e\u003e\u003e     graphql.error.syntax_error.GraphQLSyntaxError: Syntax Error: Expected Name, found }\n\n\n📖 Features\n--------\n\n- No need to handle the HTTP layer. (You can still set HTTP headers, though!)\n- Responses come back as named tuples - even errors!\n- Validate your query strings easily.\n- Python 3.6+\n\n✨ Future goals\n---------------\n\n- Hydrate API responses into custom Python objects.\n\n🏗 Status\n----------\n\ngql.py is currently under development.\n\n🎥 Credits\n-----------\n\nThis package was created with Cookiecutter_.\n\nWe use `Python Requests`_ for talking HTTP.\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`Python Requests`: https://github.com/audreyr/cookiecutter-pypackage\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphalt%2Fgql_py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphalt%2Fgql_py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphalt%2Fgql_py/lists"}