Git graph to networkx
Project description
Git-NetworkX
Port of https://github.com/hoduche/git-graph to NetworkX
Install
PyPi
pip install git-graph
Git
pip install git+https://github.com/CircArgs/git-networkx.git
Demo
from networkx.drawing.nx_pydot import write_dot
import git_networkx.git_networkx as gnx
#everything
All = gnx.GitNX('my/repo/path/that/has/a/.git')
write_dot(All, "myrepo.dot")
#Commits
Commits = gnx.GitNX('my/repo/path/that/has/a/.git', "c")
write_dot(Commits, "mycommits.dot")
Node Types
Node Type | Letter | Node Type | Letter |
---|---|---|---|
blob | b | remote branch | r |
tree | t | remote head | d |
commit | c | remote server | s |
local branch | l | annotated tag | a |
local head | h | tag | g |
upstream link | u |
By default all nodes are added to the DiGraph.
# you can get your commits, branches and the head of your local repo simply with lch
G=gnx.GitNX('../git_networkx_test/', "lch")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
git-networkx-2.0.0.tar.gz
(5.7 kB
view hashes)
Built Distribution
Close
Hashes for git_networkx-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6174f87ff2925f8d73b26c1b704257cdf7ad3821302cb656ef9119d9ce110401 |
|
MD5 | 0a264bc8b455b59428b4334a1496ca29 |
|
BLAKE2b-256 | c0cd613a5675e6a0076c421e224b838c428dd1a5e218e17db204112ffd75486d |