Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fharchive/python.activegithub

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
https://github.com/fharchive/python.activegithub

active forks forks-insight github-api github-api-v3 github-api-v4 github-traffic graphql python python3 repository traffic traffic-history

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

[![Github top language](https://img.shields.io/github/languages/top/FredHappyface/Python.ActiveGithub.svg?style=for-the-badge&cacheSeconds=28800)](../../)
[![Codacy grade](https://img.shields.io/codacy/grade/1bf2f48795f2461bb742209f3cc5ae15.svg?style=for-the-badge&cacheSeconds=28800)](https://www.codacy.com/manual/FredHappyface/Python.ActiveGithub)
[![Issues](https://img.shields.io/github/issues/FredHappyface/Python.ActiveGithub.svg?style=for-the-badge&cacheSeconds=28800)](../../issues)
[![License](https://img.shields.io/github/license/FredHappyface/Python.ActiveGithub.svg?style=for-the-badge&cacheSeconds=28800)](/LICENSE.md)
[![Commit activity](https://img.shields.io/github/commit-activity/m/FredHappyface/Python.ActiveGithub.svg?style=for-the-badge&cacheSeconds=28800)](../../commits/master)
[![Last commit](https://img.shields.io/github/last-commit/FredHappyface/Python.ActiveGithub.svg?style=for-the-badge&cacheSeconds=28800)](../../commits/master)

# 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](#github-tokens)
- [Using](#using)
- [active\_github.py - Input](#active_githubpy---input)
- [active\_github.py - Output](#active_githubpy---output)
- [urepos\_active.py - Input](#urepos_activepy---input)
- [urepos\_active.py - Output](#urepos_activepy---output)
- [repos\_traffic.py - Input](#repos_trafficpy---input)
- [repos\_traffic.py - Output](#repos_trafficpy---output)
- [gh\_repl.py](#gh_replpy)
- [get\_badges.py](#get_badgespy)
- [Language information](#language-information)
- [Built for](#built-for)
- [Other versions](#other-versions)
- [How to run](#how-to-run)
- [Changelog](#changelog)
- [Download](#download)
- [Clone](#clone)
- [Using The Command Line](#using-the-command-line)
- [Using GitHub Desktop](#using-github-desktop)
- [Download Zip File](#download-zip-file)
- [Licence](#licence)

## 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](readme-assets/screenshots/screenshot-0.png)

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

```txt
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

```txt
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 .

Install with chocolatey

```powershell
choco install python
```

### Other versions
To install Python, go to 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](/CHANGELOG.md) 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

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

More information can be found at

#### 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

### 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](/LICENSE.md) for more information.)