Skip to main content

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

Metadata

Release files for gitink 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gitink 0.2.2
File Size Uploaded
gitink-0.2.2.tar.gz 46.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gitink 0.2.2
File Interpreter ABI Platform
gitink-0.2.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 65.3 kB

Release files / gitink-0.2.2.tar.gz

Download URL gitink-0.2.2.tar.gz
Size 46.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c37d427033829a15c66dadfe22582408a9103819d5163cce8defca29856804fb
BLAKE2b-256 checksum
How to use checksums
57aef76396edf27226f5771cfd08a74e4fcaa2d51be481a91a35799bedfac1e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release files / gitink-0.2.2-py2.py3-none-any.whl

Download URL gitink-0.2.2-py2.py3-none-any.whl
Size 18.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
3e5d9625d32a09eb024fb7f406178187219e488760f8c3fb90e02625159c8efd
BLAKE2b-256 checksum
How to use checksums
b35cf2c949ff42e39ff8003ac7d084a4fc33fb565a688fe1304495a52c110337
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page