One API for multiple git forges.
Project description
One Git library to Rule
Library for one API for many git forges. (e.g. GitHub, GitLab, Pagure).
Currently supported git forges:
- GitHub
- Pagure
Usage
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
.
Requirements
Makefile
Tests
Run make prepare-check
before first make check
.
Contribution notes
- Property should not connect to network.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ogr-0.8.0.tar.gz
(940.1 kB
view details)
Built Distribution
ogr-0.8.0-py2.py3-none-any.whl
(52.4 kB
view details)
File details
Details for the file ogr-0.8.0.tar.gz
.
File metadata
- Download URL: ogr-0.8.0.tar.gz
- Upload date:
- Size: 940.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0b14951ed6e63972b9def5cf5e6f85fb1cd5333cd47b209b41c0678a59410f5 |
|
MD5 | e7a3f8695177ac6618d5e9023f1dd642 |
|
BLAKE2b-256 | d175ebbc24012d83d48399dd213be2028b71254fe56aa2579d17fe1db386b09f |
File details
Details for the file ogr-0.8.0-py2.py3-none-any.whl
.
File metadata
- Download URL: ogr-0.8.0-py2.py3-none-any.whl
- Upload date:
- Size: 52.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76685de7f08498a2c24849c3b3adaec0db8685460f1fd3e82be3206ab57e8f44 |
|
MD5 | fb0faf4040b240316fc8db5b00accc94 |
|
BLAKE2b-256 | abf15e165f1023a419195f0cbdd0d21d14863f5ca98d570d2e204926427819dd |