Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/robertobochet/ghutter

GHutter is a tool to recreate the history graph of a GitHub repository in graphviz dot format
https://github.com/robertobochet/ghutter

Last synced: 14 days ago
JSON representation

GHutter is a tool to recreate the history graph of a GitHub repository in graphviz dot format

Awesome Lists containing this project

README

        

# GHutter

`GHutter` is a tool to recreate the history graph of a GitHub repository in Graphviz's Dot Language

## Install

`Ghutter` is available on PyPI

```bash
pip install ghutter
```

Anymore `GHutter` requires `graphviz` is installed on you system in order to render the graphs. Refer to [Graphviz documentation](https://graphviz.org/download/) for more information

## Usage

```text
usage: python -m ghutter [-h] [-t TOKEN] [--max-commits MAXCOMMITS] [-d DOTOUTPUT] [-o DRAWOUTPUT] repository

'GHutter' is a tool to recreate the history graph of a GitHub repository in Graphviz's Dot Language

positional arguments:
repository github repository in format "owner/repository" or url

options:
-h, --help show this help message and exit
-t TOKEN, --token TOKEN
github personal access token
--max-commits MAXCOMMITS
max number of commits to fetch from the history. If it is omitted it tries to fetch the whole
history (parents will always be shown)
-d DOTOUTPUT, --dot-output DOTOUTPUT
graph dot file output path (default 'history.dot')
-o DRAWOUTPUT, --draw-output DRAWOUTPUT
graph render output path (there may be several). Check 'Graphviz' supported formats on your
system
```

### Example

```bash
python -m ghutter -t --max-commits 1000 -d history_graph.dot -o history.svg -o history.png archlinux/linux
```

## License

This project is licensed under the terms of the GPL-3.0 license.