{"id":27799,"library":"gh-core","title":"gh-core","description":"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.","status":"active","version":"2.3.1","language":"python","source_language":"en","source_url":"https://github.com/birdflyi/GitHub_Collaboration_Relation_Extraction","tags":["github","collaboration","graph","extraction","network-analysis"],"install":[{"cmd":"pip install gh-core","lang":"bash","label":"Latest stable"}],"dependencies":[{"reason":"Graph operations","package":"networkx","optional":false},{"reason":"Data manipulation","package":"pandas","optional":false}],"imports":[{"note":"Avoid attribute import; module not structured that way.","wrong":"import gh_core.GitHubCollaboration","symbol":"GitHubCollaboration","correct":"from gh_core import GitHubCollaboration"},{"note":"Use direct import.","wrong":"","symbol":"extract_relations","correct":"from gh_core import extract_relations"}],"quickstart":{"code":"from gh_core import GitHubCollaboration\nimport os\n\ntoken = os.environ.get('GITHUB_TOKEN', '')\nif not token:\n    print('Set GITHUB_TOKEN environment variable')\nelse:\n    gc = GitHubCollaboration(token)\n    repo='octocat/Hello-World'\n    relations = gc.extract_relations(repo)\n    print(relations)","lang":"python","description":"Initialize with a GitHub token and extract relations from a repository."},"warnings":[{"fix":"Use 'from gh_core import ...'","message":"In version 2.0, the import path changed from ghcore to gh_core. Old code 'from ghcore import ...' will fail.","severity":"breaking","affected_versions":">=2.0"},{"fix":"Replace get_relations with extract_relations.","message":"The method 'get_relations' is deprecated in 2.3.0; use 'extract_relations' instead.","severity":"deprecated","affected_versions":">=2.3.0"},{"fix":"Set GITHUB_TOKEN environment variable or pass token parameter.","message":"A GitHub token is required with repo scope. Without it, API calls will fail with 401.","severity":"gotcha","affected_versions":"all"},{"fix":"Authenticate with a token.","message":"Rate limiting: default GitHub API limit is 60 requests/hour for unauthenticated requests. Use a token to increase (5000/hour).","severity":"gotcha","affected_versions":"all"},{"fix":"Ensure token has access to the target repository.","message":"Library only supports public repositories for data extraction. Private repos require appropriate token and may have limited access.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'2.3.1':35 '3.12':38 '3.9':39 'analysi':50 'analyz':27 'cadenc':41 'collabor':5,13,45 'commit':20 'contributor':30 'core':3 'current':32 'data':17 'e.g':18 'extract':7,12,47 'gh':2 'gh-core':1 'github':4,16,44 'graph':46 'irregular':43 'issu':19 'librari':10 'network':31,49 'network-analysi':48 'provid':24 'pull':21 'python':37 'relat':6 'relationship':14 'releas':40 'request':22 'requir':36 'tool':25 'version':33 'visual':29","created_at":"2026-05-09T05:52:08.346934+00:00","updated_at":"2026-05-09T05:52:08.346934+00:00","problems":{"verify_error":"× Failed to build `pandas==1.4.4`\n  ├─▶ The build backend returned an error\n  ╰─▶ Call to `setuptools.build_meta:__legacy__.build_wheel` failed (exit\n      status: 1)\n\n      [stderr]\n      Traceback (most recent call last):\n        File \"<string>\", line 14, in <module>\n        File\n      \"/home/xor/"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/birdflyi/GitHub_Collaboration_Relation_Extraction","docs":null,"changelog":null,"pypi":"https://pypi.org/project/gh-core/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["data","devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"install_fail","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-06","install_tag":null}}