• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

examples/H26-Jan-2020-8675

src/H26-Jan-2020-6,5124,626

CHANGES.rstH A D26-Jan-20204.3 KiB222176

LICENSEH A D13-Jan-202011.1 KiB203169

MANIFEST.inH A D26-Jan-2020397 1715

PKG-INFOH A D26-Jan-20203.5 KiB11889

README.rstH A D13-Jan-20201.7 KiB8961

nwdiag.1H A D13-Jan-20202 KiB6848

packetdiag.1H A D13-Jan-20202 KiB6848

rackdiag.1H A D13-Jan-20202 KiB6848

setup.cfgH A D26-Jan-2020212 2416

setup.pyH A D26-Jan-20202.5 KiB8978

tox.iniH A D26-Jan-2020259 2016

README.rst

1`nwdiag` generate network-diagram image file from spec-text file.
2
3.. image:: https://drone.io/bitbucket.org/blockdiag/nwdiag/status.png
4   :target: https://drone.io/bitbucket.org/blockdiag/nwdiag
5   :alt: drone.io CI build status
6
7.. image:: https://pypip.in/v/nwdiag/badge.png
8   :target: https://pypi.python.org/pypi/nwdiag/
9   :alt: Latest PyPI version
10
11.. image:: https://pypip.in/d/nwdiag/badge.png
12   :target: https://pypi.python.org/pypi/nwdiag/
13   :alt: Number of PyPI downloads
14
15
16Features
17========
18* Generate network-diagram from dot like text (basic feature).
19* Multilingualization for node-label (utf-8 only).
20
21You can get some examples and generated images on
22`blockdiag.com <http://blockdiag.com/en/nwdiag/nwdiag-examples.html>`_ .
23
24Setup
25=====
26
27Use easy_install or pip::
28
29   $ sudo easy_install nwdiag
30
31   Or
32
33   $ sudo pip nwdiag
34
35
36spec-text setting sample
37========================
38
39Few examples are available.
40You can get more examples at
41`blockdiag.com`_ .
42
43simple.diag
44------------
45
46simple.diag is simply define nodes and transitions by dot-like text format::
47
48    nwdiag {
49      network dmz {
50          address = "210.x.x.x/24"
51
52          web01 [address = "210.x.x.1"];
53          web02 [address = "210.x.x.2"];
54      }
55      network internal {
56          address = "172.x.x.x/24";
57
58          web01 [address = "172.x.x.1"];
59          web02 [address = "172.x.x.2"];
60          db01;
61          db02;
62      }
63    }
64
65
66Usage
67=====
68
69Execute nwdiag command::
70
71   $ nwdiag simple.diag
72   $ ls simple.png
73   simple.png
74
75
76Requirements
77============
78* Python 3.5 or later
79* blockdiag 1.5.0 or later
80* funcparserlib 0.3.6 or later
81* reportlab (optional)
82* wand and imagemagick (optional)
83* setuptools
84
85
86License
87=======
88Apache License 2.0
89