-
Notifications
You must be signed in to change notification settings - Fork 8
/
README.rst.in
76 lines (53 loc) · 2.43 KB
/
README.rst.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
asciidag - draw DAGs as ASCII art
=================================
|build-status| |win-build-status| |coveralls-coverage| |codecov-coverage| |pypi-version| |pypi-wheel|
.. |build-status| image:: https://travis-ci.org/sambrightman/asciidag.svg?branch=master
:target: https://travis-ci.org/sambrightman/asciidag
:alt: Travis CI status
.. |win-build-status| image:: https://ci.appveyor.com/api/projects/status/t4dv71xsfcifk8mg/branch/master?svg=true
:target: https://ci.appveyor.com/project/sambrightman/asciidag
:alt: AppVeyor CI status
.. |coveralls-coverage| image:: https://coveralls.io/repos/github/sambrightman/asciidag/badge.svg?branch=master
:target: https://coveralls.io/github/sambrightman/asciidag?branch=master
:alt: Coveralls coverage
.. |codecov-coverage| image:: https://codecov.io/gh/sambrightman/asciidag/branch/master/graph/badge.svg?token=tHv0ZDOJKA
:target: https://codecov.io/gh/sambrightman/asciidag
:alt: Codecov coverage
.. |pypi-version| image:: https://img.shields.io/pypi/v/asciidag
:alt: PyPI version
.. |pypi-wheel| image:: https://img.shields.io/pypi/wheel/asciidag
:alt: PyPI wheel
Overview
--------
This is a direct port of the `Git`_ log graphing code, which draws
directed acyclic commit graphs as ASCII art. It was done very
mechanically and quickly, so the code is not Pythonic. Dependencies on
`Git`_ specifics should be gone but look and feel remains.
This project is alpha quality and subject to breaking API changes.
.. note::
💡
If you are thinking about doing a large refactoring, please submit
an issue for discussion first; I consider it potentially worthwhile
to stay close to the `Git`_ source.
Installation
------------
Available for install/upgrade from `PyPI`_:
.. code-block:: bash
pip install -U asciidag
As usual, it is best to install your packages into a `virtual environment`_.
Usage
-----
``examples/demo.py`` is included in the installation directory and is
executable. The core functionality is:
.. include:: examples/demo.py
:code: python
:start-after: # start-after
:end-before: # end-before
Output:
.. image:: images/demo.png?raw=true
:alt: Demonstration screenshot
:copyright: © 2016 Sam Brightman
:license: GNU General Public License v2.0, see LICENSE for more details.
.. _virtual environment: http://docs.python-guide.org/en/latest/dev/virtualenvs
.. _Git: https://git-scm.com
.. _PyPI: https://pypi.python.org