Skip to content

andrehora/gitevo

Repository files navigation

tests

GitEvo

Code evolution analysis for Git repositories. It currently supports Python, JavaScript, TypeScript, and Java.

Examples of reports: Flask, Pandas, Node, Express, TypeScript, Vue-core, Spring Boot, Mockito, and FastAPI.

See more examples: gitevo-examples.

Install

pip install gitevo

Usage

Analyzing the evolution of a Git repository:

$ gitevo -r {python|python_fastapi|javascript|typescript|java} <git_repo>

# For example:
$ gitevo -r python https://github.com/pallets/flask
$ gitevo -r javascript https://github.com/expressjs/express
$ gitevo -r typescript https://github.com/vuejs/core
$ gitevo -r java https://github.com/mockito/mockito
$ gitevo -r python_fastapi https://github.com/fastapi/fastapi

git_repo accepts (1) a Git URL, (2) a local repository, or (3) a directory containing multiple Git repositories:

# 1. Git URL
$ gitevo -r python https://github.com/pallets/flask

# 2. Local repository
$ git clone https://github.com/pallets/flask
$ gitevo -r python flask

# 3. Directory containing multiple Git repositories
$ mkdir projects
$ cd projects
$ git clone https://github.com/pallets/flask
$ git clone https://github.com/pallets/click
$ gitevo -r python .

Command line arguments

$ gitevo --help
usage: gitevo [-h] [-r {python,python_fastapi,javascript,typescript,java}] [-f FROM_YEAR] [-t TO_YEAR] [-m] [-v] repo

Command line for GitEvo

positional arguments:
  repo                  Git repository to analyze. Accepts a Git URL, a local Git repository, or a directory containing multiple Git
                        repositories. Example: gitevo https://github.com/pallets/flask

options:
  -h, --help            show this help message and exit
  -r {python,python_fastapi,javascript,typescript,java}, --report {python,python_fastapi,javascript,typescript,java}
                        Report to be generated. Default is python.
  -f FROM_YEAR, --from-year FROM_YEAR
                        Filter commits to be analyzed (from year). Default is today - 5 years.
  -t TO_YEAR, --to-year TO_YEAR
                        Filter commits to be analyzed (to year).
  -m, --month           Set to analyze commits by month.
  -v, --version         Show the GitEvo version.

About

Code evolution analysis for Git repositories

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published