ogr

One Git library to Rule -- one API for many git forges

https://github.com/packit/ogr

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 44 committers (2.3%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.3%) to scientific vocabulary

Keywords

git github hacktoberfest pagure python python3

Keywords from Contributors

closember distributed parallel energy-system-model
Last synced: 6 months ago · JSON representation

Repository

One Git library to Rule -- one API for many git forges

Basic Info
  • Host: GitHub
  • Owner: packit
  • License: mit
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 14.5 MB
Statistics
  • Stars: 53
  • Watchers: 11
  • Forks: 67
  • Open Issues: 30
  • Releases: 80
Topics
git github hacktoberfest pagure python python3
Created about 7 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog Contributing License

README.md

One Git library to Rule

PyPI PyPI - License PyPI - Python Version PyPI - Status Build Status black pre-commit

Library for one API for many git forges. (e.g. GitHub, GitLab, Pagure).

Currently supported git forges:

  • GitHub
  • GitLab
  • Pagure

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.

```python from ogr.services.github import GithubService

service = GithubService(token="your_token")

ogrproject = service.getproject( repo="ogr", namespace="packit-service" )

ogrreleases = ogrproject.get_releases()

for release in ogrreleases: print(release.tagname) ```

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

Owner

  • Name: Packit
  • Login: packit
  • Kind: organization
  • Email: hello@packit.dev
  • Location: Czech Republic

Packit service: package it in an automated way.

GitHub Events

Total
  • Create event: 20
  • Commit comment event: 5
  • Release event: 9
  • Issues event: 36
  • Watch event: 4
  • Delete event: 13
  • Issue comment event: 295
  • Push event: 123
  • Pull request review comment event: 124
  • Pull request review event: 127
  • Pull request event: 69
  • Fork event: 11
Last Year
  • Create event: 20
  • Commit comment event: 5
  • Release event: 9
  • Issues event: 36
  • Watch event: 4
  • Delete event: 13
  • Issue comment event: 295
  • Push event: 123
  • Pull request review comment event: 124
  • Pull request review event: 127
  • Pull request event: 69
  • Fork event: 11

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 1,123
  • Total Committers: 44
  • Avg Commits per committer: 25.523
  • Development Distribution Score (DDS): 0.727
Past Year
  • Commits: 89
  • Committers: 8
  • Avg Commits per committer: 11.125
  • Development Distribution Score (DDS): 0.517
Top Committers
Name Email Commits
Matej Focko m****o@r****m 307
Frantisek Lachman f****n@r****m 235
Laura Barcziova l****o@r****m 85
Jiri Popelka j****a@r****m 77
pre-commit-ci[bot] 6****] 69
Tomas Tomecek t****k@r****m 58
Jan Scotka j****a@r****m 35
Maja Massarini m****i@r****m 29
Nikola Forró n****o@r****m 28
Hunor Csomortáni c****h@r****m 28
Release bot t****t@g****m 20
Marek Marušin m****k@g****m 19
Jan Sakalos s****j@g****m 17
Jiri Kyjovsky j****y@g****m 17
František Nečas f****s@r****m 14
Sven s****s@h****k 13
Dominika Hodovska d****k@r****m 12
shreyas s****r@g****m 8
Petr "Stone" Hracek p****k@r****m 6
Ben Crocker b****r@r****m 5
Radoslav Pitonak r****k@g****m 4
Shreyanshnit19 s****8@g****m 4
Nick Cannariato 4****o 3
Matej Mužila m****a@r****m 3
adarLa a****r@s****m 3
yzhang2907 y****7@g****m 2
pawelkopka p****2@g****m 2
kapr200 k****1@g****m 2
Clement Verna c****a@t****m 2
Laura Barcziova x****z@f****z 2
and 14 more...

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 68
  • Total pull requests: 214
  • Average time to close issues: 7 months
  • Average time to close pull requests: 11 days
  • Total issue authors: 22
  • Total pull request authors: 24
  • Average comments per issue: 2.93
  • Average comments per pull request: 4.43
  • Merged pull requests: 160
  • Bot issues: 17
  • Bot pull requests: 56
Past Year
  • Issues: 24
  • Pull requests: 85
  • Average time to close issues: 2 months
  • Average time to close pull requests: 12 days
  • Issue authors: 10
  • Pull request authors: 16
  • Average comments per issue: 1.42
  • Average comments per pull request: 4.11
  • Merged pull requests: 52
  • Bot issues: 3
  • Bot pull requests: 20
Top Authors
Issue Authors
  • lbarcziova (10)
  • lachmanfrantisek (7)
  • packit-as-a-service[bot] (7)
  • packit-as-a-service-stg[bot] (6)
  • packit-public-repos-bot (5)
  • mfocko (5)
  • TomasTomecek (4)
  • majamassarini (4)
  • sentry-io[bot] (4)
  • LecrisUT (3)
  • marusinm (2)
  • jpopelka (2)
  • rh-hemartin (1)
  • nforro (1)
  • frenzymadness (1)
Pull Request Authors
  • github-actions[bot] (38)
  • mfocko (34)
  • lbarcziova (30)
  • pre-commit-ci[bot] (27)
  • majamassarini (26)
  • nforro (15)
  • lachmanfrantisek (10)
  • usercont-release-bot (9)
  • TomasTomecek (6)
  • pranav33317 (6)
  • olamidepeterojo (5)
  • csomh (4)
  • jpopelka (4)
  • FrNecas (4)
  • p0tat0chip (3)
Top Labels
Issue Labels
complexity/single-task (12) kind/bug (11) good-first-issue (8) impact/low (8) gain/low (7) kind/feature (7) stale (7) area/gitlab (6) area/general (4) kind/technical-debt (4) area/forgejo (4) complexity/epic (4) area/github (3) pagure (3) pinned (3) kind/refactor (3) triaged (2) blocked (2) area/user-experience (2) Hacktoberfest (2) 🌞 friday 🤟 (1) gain/high (1) area/testing-farm (1) complexity/easy-fix (1) kind/internal (1) area/other (1) kind/documentation (1) needs-design (1) RHOSC (1)
Pull Request Labels
mergeit (159) release (50) 🌞 friday 🤟 (3) pinned (1) has-release-notes (1) stale (1)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 11,227 last-month
  • Total dependent packages: 7
  • Total dependent repositories: 44
  • Total versions: 77
  • Total maintainers: 2
pypi.org: ogr

One API for multiple git forges.

  • Versions: 77
  • Dependent Packages: 7
  • Dependent Repositories: 44
  • Downloads: 11,227 Last month
  • Docker Downloads: 0
Rankings
Dependent packages count: 1.4%
Docker downloads count: 2.1%
Dependent repos count: 2.2%
Downloads: 3.7%
Average: 4.1%
Forks count: 5.7%
Stargazers count: 9.6%
Maintainers (2)
Last synced: 6 months ago

Dependencies

.github/workflows/do-release.yml actions
  • actions/checkout v3 composite
.github/workflows/docs.yml actions
  • actions/checkout v3 composite
.github/workflows/opened-issues-to-the-board.yml actions
  • actions/add-to-project v0.3.0 composite
.github/workflows/prepare-release.yml actions
  • actions/checkout v3 composite
  • packit/prepare-release v0 composite
  • peter-evans/create-pull-request v4 composite
.github/workflows/pypi-publish.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v2 composite
  • pypa/gh-action-pypi-publish release/v1 composite
pyproject.toml pypi
  • Deprecated *
  • GitPython *
  • PyGithub *
  • PyYAML *
  • cryptography *
  • python-gitlab *
  • requests *
  • urllib3 *