Skip to main content

gitink: ASCII to SVG Git log graph visualizer.

Project description

image image PyPI badge

gitink

ASCII to SVG Git log graph visualizer. Useful for teaching Git. Under the hood it uses https://github.com/bast/ascii2graph.

Example

$ cat example.txt

                     [feature]
                      |
                      v
               x1-----x2
              /
c1----c2----m1----c3----c4
  \        /            ^
   b1----b2----b3       |
   ^           ^       [main,HEAD]
   |           |
  [_branch]   [branch]
$ gitink --in-file=example.txt | display

This produces (display command requires imagemagick):

git log graph example

Available options

$ gitink --help

Usage: gitink [OPTIONS]

Options:
  --scale FLOAT             Scale sizes by this factor.
  --in-file TEXT            ASCII file to convert.
  --time-direction INTEGER  Direction of the time arrow (0, 90, 180, or 270).
                            Default: 90 (right).
  --help                    Show this message and exit.

Installation

$ pip install gitink

How do the colors work?

Coloring is done according to the first character of the commit hash. Other suggestions welcome.

Other projects that are interesting

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

gitink-0.2.2.tar.gz (46.3 kB view hashes)

Uploaded Source

Built Distribution

gitink-0.2.2-py2.py3-none-any.whl (18.9 kB view hashes)

Uploaded Python 2 Python 3

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