{"id":15402299,"url":"https://github.com/kwk/ghgql","last_synced_at":"2026-03-03T15:04:30.648Z","repository":{"id":59137986,"uuid":"535550256","full_name":"kwk/ghgql","owner":"kwk","description":"Thin wrapper for interacting with the Github GraphQL API","archived":false,"fork":false,"pushed_at":"2024-07-05T22:31:21.000Z","size":425,"stargazers_count":0,"open_issues_count":12,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-28T02:24:23.209Z","etag":null,"topics":["api","github","graphql","python","wrapper"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/ghgql/","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/kwk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-12T07:10:07.000Z","updated_at":"2022-10-11T09:16:48.000Z","dependencies_parsed_at":"2024-02-18T07:32:30.785Z","dependency_job_id":"5a9ed7ef-b40d-4d7d-b569-1f161a1a9cd2","html_url":"https://github.com/kwk/ghgql","commit_stats":{"total_commits":76,"total_committers":3,"mean_commits":"25.333333333333332","dds":"0.26315789473684215","last_synced_commit":"99f693c785b25209d56b2049fc3fb65b63b545d8"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/kwk/ghgql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwk%2Fghgql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwk%2Fghgql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwk%2Fghgql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwk%2Fghgql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kwk","download_url":"https://codeload.github.com/kwk/ghgql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwk%2Fghgql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30050222,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T14:38:37.398Z","status":"ssl_error","status_checked_at":"2026-03-03T14:38:06.721Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api","github","graphql","python","wrapper"],"created_at":"2024-10-01T16:02:27.632Z","updated_at":"2026-03-03T15:04:30.626Z","avatar_url":"https://github.com/kwk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ghgql\n\nThin wrapper for interacting with the [Github GraphQL API](https://docs.github.com/en/graphql).\n\n## Status\n\n[![Documentation Status](https://readthedocs.org/projects/ghgql/badge/?version=latest)](https://ghgql.readthedocs.io/en/latest/?badge=latest)\n[![CodeQL](https://github.com/kwk/ghgql/actions/workflows/codeql.yml/badge.svg)](https://github.com/kwk/ghgql/actions/workflows/codeql.yml)\n[![ci-cd](https://github.com/kwk/ghgql/actions/workflows/ci-cd.yml/badge.svg)](https://github.com/kwk/ghgql/actions/workflows/ci-cd.yml)\n[![codecov](https://codecov.io/gh/kwk/ghgql/branch/main/graph/badge.svg?token=ASSPTOL3JU)](https://codecov.io/gh/kwk/ghgql)\n[![release](https://img.shields.io/github/release/kwk/ghgql.svg)](https://github.com/kwk/ghgql/releases)\n\n## Documentation\n\nPlease find the documentation and usage examples here: https://ghgql.readthedocs.io/en/latest/\n\n## Installation\n\n```bash\n$ pip install ghgql\n```\n\n## Usage\n\nFor a more in-depth example, take a look at [the example in the documentation](https://ghgql.readthedocs.io/en/latest/example.html). Here's a basic example.\n\n```python\nimport os\nimport fnc\nimport ghgql\n\nquery = \"\"\"\nquery ($searchQuery: String!) {\n  search(query: $searchQuery, type: ISSUE, first: 1) {\n    edges {\n      node {\n        ... on Issue {\n          id\n          number\n          title\n          url\n        }\n      }\n    }\n  }\n}\n\"\"\"\n\nwith ghgql.GithubGraphQL(token=os.getenv(\"GITHUB_TOKEN\")) as ghapi:\n    result = ghapi.query(query=query, variables={\"searchQuery\": \"llvm/llvm-project\"})\n    print(fnc.get(\"search.edges\", result))\n```\n\nShould output something like this:\n\n```yaml\n[{'node': {'id': 'I_kwDOHicqdc5RG-tC',\n   'number': 16,\n   'title': 'llvm/llvm-project',\n   'url': 'https://github.com/KhushP786/open-sauced-goals/issues/16'}}]\n```\n\n## Contributing\n\nInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.\n\n### Commit message conventions and semantic versioniong (semver)\n\nWe use semantic versioning and [these commit message conventions](https://www.conventionalcommits.org/en/v1.0.0/)\ncan be used to automatically bump the version number and generate the changelog.\n\n## License\n\n`ghgql` was created by Konrad Kleine. It is licensed under the terms of the MIT license.\n\n## Credits\n\nThis project was created with the help of [this python packaging documentation](https://py-pkgs.org/01-introduction).\n\n`ghgql` was created with [`cookiecutter`](https://cookiecutter.readthedocs.io/en/latest/) and the `py-pkgs-cookiecutter` [template](https://github.com/py-pkgs/py-pkgs-cookiecutter).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkwk%2Fghgql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkwk%2Fghgql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkwk%2Fghgql/lists"}