Skip to content

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

License

FHArchive/Python.ActiveGithub

Repository files navigation

Github top language Codacy grade Issues License Commit activity Last commit

Python.ActiveGithub

Project Icon

Checks that a repo is active and gets a list of active forks

Turns out that I could have used https://github.com/PyGithub/PyGithub.

Github Tokens

  1. Go to https://github.com/settings/tokens/new

  2. Fill in the 'Note' field: eg. 'Token for fredhappyface:python.activegithub'

  3. [optional] Set the expiry (the default 30 days should be sufficient)

  4. Select the scopes as follows (ro)

    Alt text

  5. Click 'Generate Token'

Using

active_github.py - Input

  • Set the repo lifespan (weeks - eg. 1 - default=36)>
  • Enter the user and repo name in the form (user/repo - eg. fredhappyface/python.activegithub)>

active_github.py - Output

  • Identify if the source repo is alive and look for forks that are active and newer

urepos_active.py - Input

  • Set the repo lifespan (weeks - eg. 1 - default=36)>
  • User repos, watched or starred (R/w/s)>

urepos_active.py - Output

  • Identify if the selected repos are active

repos_traffic.py - Input

  • Set the repo lifespan (weeks - eg. 1 - default=36)>
  • Set the organisation name (hit enter if not applicable)>

repos_traffic.py - Output

  • Ranks your repos and stores the traffic history in userReposTraffic.json

gh_repl.py

Functions:
- exit : []
- help : []
- repos : ['user']
- stars : ['user']
- watching : ['user']
- profile : ['user']
- showrepo : ['repo', 'user']
- showreadme : ['repo', 'user']
- searchissues : ['searchTerm']
- searchrepos : ['searchTerm']
- searchusers : ['searchTerm']
- gists : ['user']

get_badges.py

usage: Generate badges for repos under an user/org [-h] [-o ORGS [ORGS ...]] [-u]

options:
  -h, --help            show this help message and exit
  -o ORGS [ORGS ...], --orgs ORGS [ORGS ...]
                        add an org to get traffic for
  -u, --user            return the list of user owned repos?

Language information

Built for

This program has been written for Python 3 and has been tested with Python version 3.8.0 https://www.python.org/downloads/release/python-380/.

Install with chocolatey

choco install python

Other versions

To install Python, go to https://www.python.org/ and download the latest version.

How to run

  1. Open the .py file in vscode
  2. Ensure a python 3.8 interpreter is selected (Ctrl+Shift+P > Python:Select Interpreter > Python 3.8)
  3. Run by pressing Ctrl+F5 (if you are prompted to install any modules, accept)

Changelog

See the CHANGELOG for more information.

Download

Clone

Using The Command Line

  1. Press the Clone or download button in the top right

  2. Copy the URL (link)

  3. Open the command line and change directory to where you wish to clone to

  4. Type 'git clone' followed by URL in step 2

    git clone https://github.com/FredHappyface/Python.ActiveGithub

More information can be found at https://help.github.com/en/articles/cloning-a-repository

Using GitHub Desktop

  1. Press the Clone or download button in the top right
  2. Click open in desktop
  3. Choose the path for where you want and click Clone

More information can be found at https://help.github.com/en/desktop/contributing-to-projects/cloning-a-repository-from-github-to-github-desktop

Download Zip File

  1. Download this GitHub repository
  2. Extract the zip archive
  3. Copy/ move to the desired location

Licence

BSD-2-CLAUSE-PATENT License Copyright (c) FredHappyface (See the LICENSE for more information.)

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages