Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
tk0miya Merge pull request #13 from fuu0/master
fixed link to sample diagrams
Latest commit 91dbda4 Nov 1, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples Regenerate examples Sep 4, 2012
src Use flake8-coding and flake8-copyright at testing Aug 22, 2015
.drone.io.sh
.hgignore
CHANGES.rst Move changelogs to CHANGES.rst Aug 22, 2015
LICENSE * Change license to Apache license 2.0 May 7, 2011
MANIFEST.in Move changelogs to CHANGES.rst Aug 22, 2015
README.rst fixed link to sample diagrams Oct 30, 2018
bootstrap.py Update bootstrap.py Sep 20, 2013
buildout.cfg
nwdiag.1 Change URL in manpage Nov 6, 2011
packetdiag.1 Add manpage for packetdiag Sep 4, 2012
rackdiag.1 Add manpage for rackdiag Nov 6, 2011
setup.cfg Use flake8-coding and flake8-copyright at testing Aug 22, 2015
setup.py Fix dependency; webcolors-1.5 does not support py32 May 18, 2015
tox.ini Use flake8-coding and flake8-copyright at testing Aug 22, 2015

README.rst

nwdiag generate network-diagram image file from spec-text file.

drone.io CI build status Latest PyPI version Number of PyPI downloads

Features

  • Generate network-diagram from dot like text (basic feature).
  • Multilingualization for node-label (utf-8 only).

You can get some examples and generated images on blockdiag.com .

Setup

Use easy_install or pip:

$ sudo easy_install nwdiag

Or

$ sudo pip nwdiag

spec-text setting sample

Few examples are available. You can get more examples at blockdiag.com .

simple.diag

simple.diag is simply define nodes and transitions by dot-like text format:

diagram {
  A -> B -> C;
  lane you {
    A; B;
  }
  lane me {
    C;
  }
}

Usage

Execute nwdiag command:

$ nwdiag simple.diag
$ ls simple.png
simple.png

Requirements

  • Python 2.6, 2.7, 3.2, 3.3, 3.4
  • Pillow 2.2.1 or later
  • funcparserlib 0.3.6 or later
  • reportlab (optional)
  • wand and imagemagick (optional)
  • setuptools

License

Apache License 2.0

You can’t perform that action at this time.