nwdiag generate network-diagram image file from spec-text file.
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:
nwdiag {
network dmz {
address = "210.x.x.x/24"
web01 [address = "210.x.x.1"];
web02 [address = "210.x.x.2"];
}
network internal {
address = "172.x.x.x/24";
web01 [address = "172.x.x.1"];
web02 [address = "172.x.x.2"];
db01;
db02;
}
}
Usage
Execute nwdiag command:
$ nwdiag simple.diag $ ls simple.png simple.png
Requirements
Python 3.7 or later
blockdiag 1.5.0 or later
funcparserlib 0.3.6 or later
reportlab (optional)
wand and imagemagick (optional)
setuptools
License
Apache License 2.0
Release files for nwdiag 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nwdiag-3.0.0.tar.gz | 7.8 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nwdiag-3.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.5 MB
Release files / nwdiag-3.0.0.tar.gz
| Download URL | nwdiag-3.0.0.tar.gz |
|---|---|
| Size | 7.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e267530fcaac8a1d9e7403048597ed30e031e17f0191569dc6f704087bacb2eb
|
|
BLAKE2b-256 checksum How to use checksums |
5a7506920ff030f924638b045be3d1dbaf92b8fc462d154515ef5b6c57d7d561
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / nwdiag-3.0.0-py3-none-any.whl
| Download URL | nwdiag-3.0.0-py3-none-any.whl |
|---|---|
| Size | 7.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
549cab5400ca33b8c05ea119414fa41e6bd85be222ba524418c2c176eea87e80
|
|
BLAKE2b-256 checksum How to use checksums |
3d36efc7814620986220290ebbe2f270f31043280d37d4e094226b1ede12087d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|