Skip to content

y15a/ometrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ometrics

Quantify how much you code.

ometrics has been started with a simple goal of monitoring how much you code - regardless of what project you are working on right now. Its core operations are:

  1. Scan pre-defined directories for git repositories
  2. Looks for recent commits made by you
  3. Compiles stats
  4. Send report via Email

Usage

$ pip install -r requirements.txt
$ # do all the settings, then,
$ python main.py

Use cron or equivalent for automatic & periodic monitoring.

Settings

Note that settings.py contained in the repository is merely a template. When ometrics is first run on your system, .ometrics directory is created under $HOME where settings.py is copied into. ometrics will refer to settings.py in that directory.

Current options are:

  • GIT_DIRS - Tuple containing paths to directories, under which git repos are scanned for.
  • GIT_AUTHOR_EMAILS - Tuple containig email address of the authors. Set this to your own emails to filter out all commits made by your teammates.
  • INTERVAL_DAYS - Number of dates ometrics goes back to collect the statistics. Default value is 14 (two weeks).
  • REPORT_EMAIL_TO - String containing email address where report is sent to.
  • USE_HTML - Boolean value denoting whether HTML email is used or not. HTML version is styled using Twitter Bootstrap. Default is True.
  • EMAIL_SETUP - A dict containing connection & authentication details for the SMTP server of your choice.

Requirements

GitPython, Jinja2, Unipath, requests. For version info see requirements.txt

About

Quantify how much you code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages