GithubHelp home page GithubHelp logo

smsimone / repo_plotter Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 242 KB

Just a useless project that draws the code history for a certain repository

Python 100.00%
repository plotter useless-things useless

repo_plotter's Introduction

Repo Plotter

wakatime DeepSource

Useless script that plots repository stats over time.

It just iterates over all the commits on a specific branch and plots the requested lines of code and/or line of comments.

Dependencies

This script requires:

How to run

Before all run

$ pip3 install -r requirements.txt

to install the needed dependencies.


After that you can run the script

$ python3 -m plotter --repository "repository_url"

and it will generate an image like this:

plot

Flags

  • --repository <repository_url>
    • ignored if --offline is defined, otherwise required
    • Specifies the repository on which you want to use the script
  • --branch <branch_name>
    • optional
    • Specifies another branch instead of the default one to run this script on
  • --offline
    • optional
    • Specifies if the script has to use the pre-downloaded repository (found in .repo folder) or it has to clone it again using --repository flag
  • --dir <directory_path>
    • optional, if not defined it will use .repo directory
    • Specifies the temporary directory to use to store the repository defined with the flag --repository
  • --input_file <file_path>
    • optional, if defined it will override --repository and --offline flags
    • Specifies a custom json file to feed the script. It must has been generated during an old execution
  • --write_output
    • optional
    • Specifies wether the script has to write the intermediate results to output
  • --output_folder
    • required if --write_output is defined
    • Specifies the folder where the script has to write the output files
  • --no_preprocessing
    • Doesn't preprocess data. The script will plot all the commits

repo_plotter's People

Contributors

deepsource-autofix[bot] avatar deepsourcebot avatar smsimone avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.