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:
- Scan pre-defined directories for git repositories
- Looks for recent commits made by you
- Compiles stats
- Send report via Email
$ pip install -r requirements.txt
$ # do all the settings, then,
$ python main.py
Use cron or equivalent for automatic & periodic monitoring.
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.
GitPython, Jinja2, Unipath, requests. For version info see requirements.txt