Skip to main content

Generate statistic charts on Git repositories.

Project description

Gitchart

PyPI Build Status

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

It can build following charts, as SVG or PNG:

  • authors, processed tickets by author (pie charts)
  • 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)

Requirements

Gitchart requires:

  • Python ≥ 3.6
  • Pygal (pip install pygal)

Optional dependencies:

  • cairosvg, to generate PNG files

Install

You can install Gitchart with this command from the source repository:

$ python setup.py install

Usage

See output of command:

$ gitchart --help

Examples

Generate pie chart with authors:

$ gitchart --title "Git authors on project X" --repo /path/to/gitrepo/ authors authors.svg

Generate bar chart with commits by year using dark style:

$ gitchart --style gitchart_dark --repo /path/to/gitrepo/ commits_year commits_year.svg

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

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

Demo

Gitchart is used to build statistics for WeeChat: https://weechat.org/dev/stats/

Copyright

Copyright © 2013-2021 Sébastien Helleu

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Project details


Download files

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

Source Distribution

gitchart-2.0.2.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

gitchart-2.0.2-py3-none-any.whl (32.6 kB view details)

Uploaded Python 3

File details

Details for the file gitchart-2.0.2.tar.gz.

File metadata

  • Download URL: gitchart-2.0.2.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for gitchart-2.0.2.tar.gz
Algorithm Hash digest
SHA256 2db0d4ddc2802c848a254a13e1af0a0474c8a857762cac941815a889c6cb4dbe
MD5 4b349ea74686ad7b957c27cfd4aaf98c
BLAKE2b-256 77e1eafb7412eb51d98a88fc5ef47fbe8f1bd2ec74114247fed1be3f78ba687f

See more details on using hashes here.

File details

Details for the file gitchart-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: gitchart-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 32.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for gitchart-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3812c2574e666ecf6a06ff54acba75a2a15cb41c733364b5d40acf0f176b83bb
MD5 17014f55a54913f35708b476b3889b2e
BLAKE2b-256 3b890d9fbcbd4a509719c2da8209e0bb3f3bf486c8868060dbec6794a30edd76

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page