{"id":13501249,"url":"https://github.com/packit/ogr","last_synced_at":"2025-05-16T11:03:47.623Z","repository":{"id":36955371,"uuid":"161636700","full_name":"packit/ogr","owner":"packit","description":"One Git library to Rule -- one API for many git forges","archived":false,"fork":false,"pushed_at":"2025-05-13T07:17:12.000Z","size":15154,"stargazers_count":52,"open_issues_count":35,"forks_count":66,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-05-13T08:29:12.930Z","etag":null,"topics":["git","github","hacktoberfest","pagure","python","python3"],"latest_commit_sha":null,"homepage":"","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/packit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2018-12-13T12:33:52.000Z","updated_at":"2025-05-10T14:29:36.000Z","dependencies_parsed_at":"2023-11-13T22:23:54.868Z","dependency_job_id":"d14af31d-0ec3-44cb-b78c-0c95b3f707f6","html_url":"https://github.com/packit/ogr","commit_stats":{"total_commits":1003,"total_committers":52,"mean_commits":19.28846153846154,"dds":0.7796610169491526,"last_synced_commit":"346e9118db08aa3e98a47e7bc17b492aba383df1"},"previous_names":[],"tags_count":78,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/packit%2Fogr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/packit%2Fogr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/packit%2Fogr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/packit%2Fogr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/packit","download_url":"https://codeload.github.com/packit/ogr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254518383,"owners_count":22084374,"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","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","github","hacktoberfest","pagure","python","python3"],"created_at":"2024-07-31T22:01:30.492Z","updated_at":"2025-05-16T11:03:47.603Z","avatar_url":"https://github.com/packit.png","language":"Python","readme":"# One Git library to Rule\n\n![PyPI](https://img.shields.io/pypi/v/ogr.svg)\n![PyPI - License](https://img.shields.io/pypi/l/ogr.svg)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/ogr.svg)\n![PyPI - Status](https://img.shields.io/pypi/status/ogr.svg)\n[![Build Status](https://zuul-ci.org/gated.svg)](https://softwarefactory-project.io/zuul/t/local/builds?project=packit-service/ogr)\n[![black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\u0026logoColor=white)](https://github.com/pre-commit/pre-commit)\n\nLibrary for one API for many git forges. (e.g. GitHub, GitLab, Pagure).\n\n## Currently supported git forges:\n\n- GitHub\n- GitLab\n- Pagure\n\n## To start using ogr:\n\nSee [Documentation of Index of Sub-modules, Functions \u0026 Classes](https://packit.github.io/ogr)\n\nFor examples of how to use `ogr` see [Jupyter examples](examples).\n\n### GitHub\n\nThis snippet shows how to obtain all releases for certain GitHub project using ogr.\n\n```python\nfrom ogr.services.github import GithubService\n\nservice = GithubService(token=\"your_token\")\n\nogr_project = service.get_project(\n        repo=\"ogr\",\n        namespace=\"packit-service\"\n)\n\nogr_releases = ogr_project.get_releases()\n\n\nfor release in ogr_releases:\n    print(release.tag_name)\n```\n\nThis will output:\n\n```\n0.7.0\n0.6.0\n0.5.0\n0.4.0\n0.3.1\n0.3.0\n0.2.0\n0.1.0\n0.0.3\n0.0.2\n0.0.1\n```\n\nYou can use the same API for other forges, you just need to replace `GithubService` with `PagureService`.\n\n## Supported functionality\n\nFor more info on functionality that _is not_ supported in all services the same way\nsee [compatibility tables](COMPATIBILITY.md).\n\n## Installation\n\nOn Fedora:\n\n```\n$ dnf install python3-ogr\n```\n\nYou can also use our [`packit-releases` Copr repository](https://copr.fedorainfracloud.org/coprs/packit/packit-releases/)\n(contains also released versions of [OGR](https://github.com/packit/ogr)):\n\n```\n$ dnf copr enable packit/packit-releases\n$ dnf install python3-ogr\n```\n\nOr from PyPI:\n\n```\n$ pip3 install --user ogr\n```\n\nYou can also install OGR from the `main` branch, if you are brave enough:\n\nYou can use our [`packit-dev` Copr repository](https://copr.fedorainfracloud.org/coprs/packit/packit-dev/)\n(contains the latest development version of [ogr](https://github.com/packit/ogr)):\n\n```\n$ dnf copr enable packit/packit-dev\n$ dnf install python3-ogr\n```\n\nOr\n\n```\n$ pip3 install --user git+https://github.com/packit/ogr.git\n```\n\n## Requirements\n\n### Makefile\n\n- [podman](https://github.com/containers/libpod)\n- [ansible-bender](https://pypi.org/project/ansible-bender)\n\n### Tests\n\nMake sure to install prerequisite packages before first `make check`,\n`make build`, or `make check-in-container`. See CONTRIBUTING.md for\ndetails.\n\n# Contribution notes\n\n- Property should not connect to network.\n\n# Contribution guidelines\n\nFor more info about contributing to our project see [our contribution guide](/CONTRIBUTING.md).\n\n# Deprecation policy\n\nFor more info about deprecation policy see [Deprecation policy](https://github.com/packit/research/tree/main/deprecation)\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpackit%2Fogr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpackit%2Fogr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpackit%2Fogr/lists"}