Skip to main content

Build SVG charts from a git repository

Project description

Description is a Python script to build charts from a Git repository.

It can build following charts, as SVG or PNG:

  • authors (pie chart)
  • commits by hour of day, day, day of week, month of year, year, year/month (bar charts)
  • commits by hour of week (dot chart)
  • files by type (pie chart)


The script requires Python >= 2.7 and Pygal, which can be installed with this command:

# pip install pygal

[NOTE] cairosvg is required to generate PNG files.


See output of command:

$ python -h


Generate pie chart with authors:

$ python -t “Git authors on project X” -r /path/to/gitrepo/ authors authors.svg

Generate bar chart with commits by year:

$ python -r /path/to/gitrepo/ commits_year commits_year.svg

Generate bar chart with commits by version (git tag):

$ cd /path/to/gitrepo/
$ git tag | python /path/to/ commits_version /tmp/commits_version.svg

Demo is used to build statistics for WeeChat:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
gitchart-0.0.3-py2.py3-none-any.whl (10.2 kB) Copy SHA256 hash SHA256 Wheel 3.5
gitchart-0.0.3.tar.gz (7.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page