{"id":20880236,"url":"https://github.com/betarixm/repoql","last_synced_at":"2026-04-28T02:31:36.906Z","repository":{"id":226399646,"uuid":"768155858","full_name":"betarixm/repoql","owner":"betarixm","description":"A Python library designed for querying git repositories","archived":false,"fork":false,"pushed_at":"2024-03-13T10:26:18.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-28T19:45:55.173Z","etag":null,"topics":["git"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/betarixm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"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":"2024-03-06T15:14:34.000Z","updated_at":"2024-03-06T15:31:58.000Z","dependencies_parsed_at":"2024-03-07T12:07:46.599Z","dependency_job_id":"52a83c53-de75-411a-a2e0-70463c83f36e","html_url":"https://github.com/betarixm/repoql","commit_stats":null,"previous_names":["betarixm/repoql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/betarixm/repoql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betarixm%2Frepoql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betarixm%2Frepoql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betarixm%2Frepoql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betarixm%2Frepoql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/betarixm","download_url":"https://codeload.github.com/betarixm/repoql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betarixm%2Frepoql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32363627,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"online","status_checked_at":"2026-04-28T02:00:07.250Z","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":["git"],"created_at":"2024-11-18T07:19:33.724Z","updated_at":"2026-04-28T02:31:36.891Z","avatar_url":"https://github.com/betarixm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RepoQL\n\n\u003e A Python library designed for querying git repositories\n\nRepoQL is a Python library designed for querying git repositories. It provides a minimalistic interface wrapping around [`pygit2`](https://www.pygit2.org/), allowing you to perform various queries on git repositories.\n\n## Features\n\n- Provides functional programming style for querying git repositories.\n- Fully type hinted for improved code readability and maintainability.\n- Minimalistic design focused on simplicity and ease of use.\n\n## Usage\n\n```py\nfrom pathlib import Path\nfrom typing import Any, Callable, Iterator\n\nfrom pygit2 import Repository\n\nfrom repoql import BlobRelation\nfrom repoql import Query as Q\nfrom repoql import Queryable, blob_relation, compose\n\nblobs_by_relative_path: Callable[\n    [Path], Callable[[Queryable[BlobRelation, Any]], Iterator[BlobRelation]]\n] = lambda path: compose(\n    Q.select(\n        where=lambda blob: str(blob.path) == str(path),\n        limit=None,\n    ),\n    Q.group_by(\n        key=lambda blob: blob.id,\n    ),\n    Q.sorted(key=lambda blob: blob.commit.commit_time),\n    Q.select(limit=1),\n    Q.ungroup,\n)\n\n\nrepo = Repository(\"[path to your git repository]\")\n\nresult = blobs_by_relative_path(Path(\".gitignore\"))(blob_relation.from_repository(repo))\n```\n\nCheck out `repoql/recipes.py` for more examples.\n\n## Disclaimer\n\nRepoQL is provided as-is and without warranty. Please note that RepoQL is not intended for production use as it is not battle-tested. It's best suited for experimental or educational purposes. Use it at your own risk.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetarixm%2Frepoql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbetarixm%2Frepoql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetarixm%2Frepoql/lists"}