{"id":27819,"library":"ghops","title":"ghops (DEPRECATED)","description":"Deprecated Python library for GitHub repository operations. Version 1.0.0 is the final release. Users should migrate to repoindex (https://pypi.org/project/repoindex/), which supersedes ghops with expanded features including MCP server, export commands, and support for Gitea/Codeberg.","status":"deprecated","version":"1.0.0","language":"python","source_language":"en","source_url":"https://github.com/queelius/repoindex","tags":["deprecated","github","repository-management","cli"],"install":[{"cmd":"pip install ghops","lang":"bash","label":"Install via pip"}],"dependencies":[],"imports":[{"note":"GHOps is the main class; old tutorials may use deprecated import paths.","symbol":"GHOps","correct":"from ghops import GHOps"}],"quickstart":{"code":"from ghops import GHOps\nimport os\n\ntoken = os.environ.get('GITHUB_TOKEN', '')\nif not token:\n    raise ValueError('GITHUB_TOKEN environment variable is required')\n\ngh = GHOps(token=token)\nprint(gh.list_repos())","lang":"python","description":"Initialize GHOps with a GitHub PAT and list repositories."},"warnings":[{"fix":"pip install repoindex and update imports: from repoindex import ...","message":"ghops is deprecated and will not receive updates or bug fixes. Migrate to repoindex.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Always verify token validity: raise error if token is empty or response is 401.","message":"GHOps token authentication fails silently if GITHUB_TOKEN is not set or invalid, returning empty results.","severity":"gotcha","affected_versions":"all"},{"fix":"Use the `page` parameter in list methods or paginate with a loop.","message":"List method pagination is not automatically handled; you must manually iterate pages.","severity":"gotcha","affected_versions":"<1.0.0"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Use 'from ghops import GHOps' (capital G, H, O).","cause":"Typo or incorrect import (e.g., from ghops import ... but class is GHOps).","error":"AttributeError: module 'ghops' has no attribute 'GHOps'"},{"fix":"Set GITHUB_TOKEN to a valid GitHub personal access token before importing.","cause":"Missing or invalid GITHUB_TOKEN environment variable.","error":"HTTPError: 401 Unauthorized when calling GitHub API"},{"fix":"Provide token: GHOps(token='your_token')","cause":"GHOps constructor requires token argument.","error":"TypeError: __init__() missing 1 required positional argument: 'token'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}