All major and minor version changes will be documented in this file. Details of patch-level version changes can be found in commit messages.
- Add
get_badges.py
- Major refactor
- use black
- use snake_case for module names
- tidy up gitignore
- small tweaks to md files
- fstrings
- quoted strings
- using Path().read_text(encoding=...) in place of open().read()
- bugfixes
- use pyproject.toml
- docs
- up to date requirements.txt
- (experiment with reduced metadata - good for python updates)
- Fix bug with GitHub Graph causing post requests to not be cached
- Clean-up
- Use requests_cache to decrease the time per repeated API call from 0.25s to < 0.01s for GitHub REST
- Using
urllib3
instead of requests (tiny speed advantages) - Type hinting
- Drop py < 3.7
- Use argparse for ReposTraffic.py
- Linting fixes
- Use catpandoc to process readme markdown
-
Rename UserReposTraffic.py to ReposTraffic.py
-
ReposTraffic.py can be used to get traffic info for organizations
-
Swap out utils logprint for metprint because I can (Currently using FHFormatter but this can be swapped out)
-
github_graph.py signature change (below) so a list of repos can be fetched for organizations
getListOfUserRepos(username, context="repositories", lifespan=520): getListOfRepos(login, context="repositories", organization=False, lifespan=520):
- Updated ActiveGithub.py to use GitHub API v4
- Streamlining, use of GitHub API v4 as it offers significant speed improvements (getGithubApiRequest 3.7s to 0.7s per call - 81% speed improvement when getting a list of watched repos that are alive and newer than user starred repos)
- Optimisations to getPaginatedGithubApiRequest (12.49s to 8.94s per call) - 28% speed improvement when getting a list of forked repos that are alive and newer than user starred repos
- Changes to signatures and new functions are in bold
- printIssue(issue)
- printUser(user)
- printGist(gist)
- printRepo(repo)
- Added GitHubRepl.py with basic functionality - I aim for feature parity with github.com
- Changes to signatures and new functions are in bold
- getGithubApiRequest(urlExcBase, jsonOnly=True)
- sourceAlive(repoData, lifespan)
- getListOfAliveForks(repoData, lifespan, enableNewer=True)
- param "data" has been renamed to "context"
- getUser(username)
- getRepo(repoName)
- getReadme(repoName)
- search(searchTerm, context="repositories")
- Optimisations of lib and UserReposActive (UserReposActive.py:5(forEachRepo) originally took 10.92s and now takes 9.197s per call) - 15% speed improvement Using cProfile
- Updated ActiveGithub.py, gitrepo.py, UserReposActive.py. Added UserReposTraffic.py
- First release, works pretty well