Registry / data / gh-core

gh-core

JSON →
library2.3.1pypypiunverified

GitHub Collaboration Relation Extraction is a library for extracting collaboration relationships from GitHub data (e.g., issues, commits, pull requests). It provides tools to analyze and visualize contributor networks. Current version is 2.3.1, requires Python <3.12,>=3.9. Release cadence is irregular.

pip install gh-core
INSTALL
IMPORT
SIG · GH-CORE
G
gh-core
datapythonv2.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GitHubCollaboration
✓ from gh_core import GitHubCollaboration
✗ import gh_core.GitHubCollaboration
Avoid attribute import; module not structured that way.
extract_relations
✓ from gh_core import extract_relations
Use direct import.

Initialize with a GitHub token and extract relations from a repository.

from gh_core import GitHubCollaboration import os token = os.environ.get('GITHUB_TOKEN', '') if not token: print('Set GITHUB_TOKEN environment variable') else: gc = GitHubCollaboration(token) repo='octocat/Hello-World' relations = gc.extract_relations(repo) print(relations)
Debug
Known issues
breakingIn version 2.0, the import path changed from ghcore to gh_core. Old code 'from ghcore import ...' will fail.
fix
Use 'from gh_core import ...'
affects: >=2.0
deprecatedThe method 'get_relations' is deprecated in 2.3.0; use 'extract_relations' instead.
fix
Replace get_relations with extract_relations.
affects: >=2.3.0
gotchaA GitHub token is required with repo scope. Without it, API calls will fail with 401.
fix
Set GITHUB_TOKEN environment variable or pass token parameter.
affects: all
gotchaRate limiting: default GitHub API limit is 60 requests/hour for unauthenticated requests. Use a token to increase (5000/hour).
fix
Authenticate with a token.
affects: all
gotchaLibrary only supports public repositories for data extraction. Private repos require appropriate token and may have limited access.
fix
Ensure token has access to the target repository.
affects: all
Upgrade
Version history
2.3.1latest on PyPI · released Jan 27, 2026
Audit
Dependencies
networkxrequiredGraph operations
pandasrequiredData manipulation
Agent activity
9 hits · last 30 days
node
8
Resources
gh-core — pip install gh-core · libregistry