{"id":23108227,"url":"https://github.com/fharchive/python.activegithub","last_synced_at":"2025-08-03T13:14:58.046Z","repository":{"id":134644169,"uuid":"234105488","full_name":"FHArchive/Python.ActiveGithub","owner":"FHArchive","description":"ActiveGithub.py - Identify if the source repo is alive and look for forks that are active and newer, UserReposActive.py - Identify if the selected repos are active, UserReposTraffic.py - Ranks your repos and stores the traffic history in userReposTraffic.json","archived":false,"fork":false,"pushed_at":"2024-03-31T15:10:18.000Z","size":151,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T15:21:17.599Z","etag":null,"topics":["active","forks","forks-insight","github-api","github-api-v3","github-api-v4","github-traffic","graphql","python","python3","repository","traffic","traffic-history"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FHArchive.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-01-15T15:03:43.000Z","updated_at":"2023-09-04T12:12:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"f4e190b8-606b-431b-ad66-8c5b68476b31","html_url":"https://github.com/FHArchive/Python.ActiveGithub","commit_stats":null,"previous_names":["fharchive/python.activegithub"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FHArchive/Python.ActiveGithub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FHArchive%2FPython.ActiveGithub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FHArchive%2FPython.ActiveGithub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FHArchive%2FPython.ActiveGithub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FHArchive%2FPython.ActiveGithub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FHArchive","download_url":"https://codeload.github.com/FHArchive/Python.ActiveGithub/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FHArchive%2FPython.ActiveGithub/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268551029,"owners_count":24268508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["active","forks","forks-insight","github-api","github-api-v3","github-api-v4","github-traffic","graphql","python","python3","repository","traffic","traffic-history"],"created_at":"2024-12-17T01:18:01.148Z","updated_at":"2025-08-03T13:14:58.009Z","avatar_url":"https://github.com/FHArchive.png","language":"Python","readme":"[![Github top language](https://img.shields.io/github/languages/top/FredHappyface/Python.ActiveGithub.svg?style=for-the-badge\u0026cacheSeconds=28800)](../../)\n[![Codacy grade](https://img.shields.io/codacy/grade/1bf2f48795f2461bb742209f3cc5ae15.svg?style=for-the-badge\u0026cacheSeconds=28800)](https://www.codacy.com/manual/FredHappyface/Python.ActiveGithub)\n[![Issues](https://img.shields.io/github/issues/FredHappyface/Python.ActiveGithub.svg?style=for-the-badge\u0026cacheSeconds=28800)](../../issues)\n[![License](https://img.shields.io/github/license/FredHappyface/Python.ActiveGithub.svg?style=for-the-badge\u0026cacheSeconds=28800)](/LICENSE.md)\n[![Commit activity](https://img.shields.io/github/commit-activity/m/FredHappyface/Python.ActiveGithub.svg?style=for-the-badge\u0026cacheSeconds=28800)](../../commits/master)\n[![Last commit](https://img.shields.io/github/last-commit/FredHappyface/Python.ActiveGithub.svg?style=for-the-badge\u0026cacheSeconds=28800)](../../commits/master)\n\n\u003c!-- omit in toc --\u003e\n# Python.ActiveGithub\n\n\u003cimg src=\"readme-assets/icons/proj-icon.png\" alt=\"Project Icon\" width=\"100\"\u003e\n\nChecks that a repo is active and gets a list of active forks\n\nTurns out that I could have used https://github.com/PyGithub/PyGithub.\n\n- [Github Tokens](#github-tokens)\n- [Using](#using)\n\t- [active\\_github.py - Input](#active_githubpy---input)\n\t- [active\\_github.py - Output](#active_githubpy---output)\n\t- [urepos\\_active.py - Input](#urepos_activepy---input)\n\t- [urepos\\_active.py - Output](#urepos_activepy---output)\n\t- [repos\\_traffic.py - Input](#repos_trafficpy---input)\n\t- [repos\\_traffic.py - Output](#repos_trafficpy---output)\n\t- [gh\\_repl.py](#gh_replpy)\n\t- [get\\_badges.py](#get_badgespy)\n- [Language information](#language-information)\n\t- [Built for](#built-for)\n\t- [Other versions](#other-versions)\n- [How to run](#how-to-run)\n- [Changelog](#changelog)\n- [Download](#download)\n\t- [Clone](#clone)\n\t\t- [Using The Command Line](#using-the-command-line)\n\t\t- [Using GitHub Desktop](#using-github-desktop)\n\t- [Download Zip File](#download-zip-file)\n- [Licence](#licence)\n\n## Github Tokens\n\n1. Go to https://github.com/settings/tokens/new\n2. Fill in the 'Note' field: eg. 'Token for fredhappyface:python.activegithub'\n3. \\[optional\\] Set the expiry (the default 30 days should be sufficient)\n4. Select the scopes as follows (ro)\n\n\t![Alt text](readme-assets/screenshots/screenshot-0.png)\n\n5. Click 'Generate Token'\n\n## Using\n\n### active_github.py - Input\n\n- Set the repo lifespan (weeks - eg. 1 - default=36)\u003e\n- Enter the user and repo name in the form (user/repo - eg. fredhappyface/python.activegithub)\u003e\n\n### active_github.py - Output\n\n- Identify if the source repo is alive and look for forks that are active and newer\n\n### urepos_active.py - Input\n\n- Set the repo lifespan (weeks - eg. 1 - default=36)\u003e\n- User repos, watched or starred (R/w/s)\u003e\n\n### urepos_active.py - Output\n\n- Identify if the selected repos are active\n\n### repos_traffic.py - Input\n\n- Set the repo lifespan (weeks - eg. 1 - default=36)\u003e\n- Set the organisation name (hit enter if not applicable)\u003e\n\n### repos_traffic.py - Output\n\n- Ranks your repos and stores the traffic history in userReposTraffic.json\n\n### gh_repl.py\n\n```txt\nFunctions:\n- exit : []\n- help : []\n- repos : ['user']\n- stars : ['user']\n- watching : ['user']\n- profile : ['user']\n- showrepo : ['repo', 'user']\n- showreadme : ['repo', 'user']\n- searchissues : ['searchTerm']\n- searchrepos : ['searchTerm']\n- searchusers : ['searchTerm']\n- gists : ['user']\n```\n\n### get_badges.py\n\n```txt\nusage: Generate badges for repos under an user/org [-h] [-o ORGS [ORGS ...]] [-u]\n\noptions:\n  -h, --help            show this help message and exit\n  -o ORGS [ORGS ...], --orgs ORGS [ORGS ...]\n                        add an org to get traffic for\n  -u, --user            return the list of user owned repos?\n```\n\n## Language information\n\n### Built for\nThis program has been written for Python 3 and has been tested with\nPython version 3.8.0 \u003chttps://www.python.org/downloads/release/python-380/\u003e.\n\nInstall with chocolatey\n\n```powershell\nchoco install python\n```\n\n### Other versions\nTo install Python, go to \u003chttps://www.python.org/\u003e and download the latest\nversion.\n\n## How to run\n\n1. Open the .py file in vscode\n2. Ensure a python 3.8 interpreter is selected (Ctrl+Shift+P \u003e Python:Select Interpreter \u003e Python 3.8)\n3. Run by pressing Ctrl+F5 (if you are prompted to install any modules, accept)\n\n## Changelog\nSee the [CHANGELOG](/CHANGELOG.md) for more information.\n\n## Download\n\n### Clone\n\n#### Using The Command Line\n\n1. Press the Clone or download button in the top right\n2. Copy the URL (link)\n3. Open the command line and change directory to where you wish to\nclone to\n4. Type 'git clone' followed by URL in step 2\n\n\t```bash\n\tgit clone https://github.com/FredHappyface/Python.ActiveGithub\n\t```\n\nMore information can be found at\n\u003chttps://help.github.com/en/articles/cloning-a-repository\u003e\n\n#### Using GitHub Desktop\n\n1. Press the Clone or download button in the top right\n2. Click open in desktop\n3. Choose the path for where you want and click Clone\n\nMore information can be found at\n\u003chttps://help.github.com/en/desktop/contributing-to-projects/cloning-a-repository-from-github-to-github-desktop\u003e\n\n### Download Zip File\n\n1. Download this GitHub repository\n2. Extract the zip archive\n3. Copy/ move to the desired location\n\n## Licence\nBSD-2-CLAUSE-PATENT License\nCopyright (c) FredHappyface\n(See the [LICENSE](/LICENSE.md) for more information.)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffharchive%2Fpython.activegithub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffharchive%2Fpython.activegithub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffharchive%2Fpython.activegithub/lists"}