Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
examples/ | H | 26-Jan-2020 | - | 86 | 75 | |
src/ | H | 26-Jan-2020 | - | 6,512 | 4,626 | |
CHANGES.rst | H A D | 26-Jan-2020 | 4.3 KiB | 222 | 176 | |
LICENSE | H A D | 13-Jan-2020 | 11.1 KiB | 203 | 169 | |
MANIFEST.in | H A D | 26-Jan-2020 | 397 | 17 | 15 | |
PKG-INFO | H A D | 26-Jan-2020 | 3.5 KiB | 118 | 89 | |
README.rst | H A D | 13-Jan-2020 | 1.7 KiB | 89 | 61 | |
nwdiag.1 | H A D | 13-Jan-2020 | 2 KiB | 68 | 48 | |
packetdiag.1 | H A D | 13-Jan-2020 | 2 KiB | 68 | 48 | |
rackdiag.1 | H A D | 13-Jan-2020 | 2 KiB | 68 | 48 | |
setup.cfg | H A D | 26-Jan-2020 | 212 | 24 | 16 | |
setup.py | H A D | 26-Jan-2020 | 2.5 KiB | 89 | 78 | |
tox.ini | H A D | 26-Jan-2020 | 259 | 20 | 16 |
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