One Git library to Rule
Library for one API for many git forges. (e.g. GitHub, GitLab, Pagure, Forgejo).
Currently supported git forges:
- GitHub
- GitLab
- Pagure
- Forgejo
To start using ogr:
See Documentation of Index of Sub-modules, Functions & Classes
For examples of how to use ogr see Jupyter examples.
GitHub
This snippet shows how to obtain all releases for certain GitHub project using ogr.
from ogr.services.github import GithubService
service = GithubService(token="your_token")
ogr_project = service.get_project(
repo="ogr",
namespace="packit-service"
)
ogr_releases = ogr_project.get_releases()
for release in ogr_releases:
print(release.tag_name)
This will output:
0.7.0
0.6.0
0.5.0
0.4.0
0.3.1
0.3.0
0.2.0
0.1.0
0.0.3
0.0.2
0.0.1
You can use the same API for other forges, you just need to replace GithubService with PagureService.
Supported functionality
For more info on functionality that is not supported in all services the same way see compatibility tables.
Installation
On Fedora:
$ dnf install python3-ogr
You can also use our packit-releases Copr repository
(contains also released versions of OGR):
$ dnf copr enable packit/packit-releases
$ dnf install python3-ogr
Or from PyPI:
$ pip3 install --user ogr
You can also install OGR from the main branch, if you are brave enough:
You can use our packit-dev Copr repository
(contains the latest development version of ogr):
$ dnf copr enable packit/packit-dev
$ dnf install python3-ogr
Or
$ pip3 install --user git+https://github.com/packit/ogr.git
Requirements
Makefile
Tests
Make sure to install prerequisite packages before first make check,
make build, or make check-in-container. See CONTRIBUTING.md for
details.
Contribution notes
- Property should not connect to network.
Contribution guidelines
For more info about contributing to our project see our contribution guide.
Deprecation policy
For more info about deprecation policy see Deprecation policy
Release files for ogr 0.63.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ogr-0.63.0.tar.gz | 4.9 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ogr-0.63.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.0 MB
Release files / ogr-0.63.0.tar.gz
| Download URL | ogr-0.63.0.tar.gz |
|---|---|
| Size | 4.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1fbd6ef62b491d1a24b7d9302354a66ca6ff12b412f787130be48d7e5c3b318d
|
|
BLAKE2b-256 checksum How to use checksums |
b151988d68c5c6ef3e403117cc65cdff1b9442ac6995cad87bf32fe2e0713611
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.
Transparency logRelease files / ogr-0.63.0-py3-none-any.whl
| Download URL | ogr-0.63.0-py3-none-any.whl |
|---|---|
| Size | 112.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b7590cc0cd1aca7a5a7461965594b6f810b66a91ac1485206f744d3d1eb6e6d9
|
|
BLAKE2b-256 checksum How to use checksums |
75135ae7e82093cbaf6933c00cbc31d58e5ca2c7acec8b9cfa39768637450a41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.
Transparency log