Skip to main content

nwdiag generates network-diagram image from text

Project description

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:

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.5 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nwdiag-2.0.0.tar.gz (7.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nwdiag-2.0.0-py2.py3-none-any.whl (7.7 MB view details)

Uploaded Python 2Python 3

File details

Details for the file nwdiag-2.0.0.tar.gz.

File metadata

  • Download URL: nwdiag-2.0.0.tar.gz
  • Upload date:
  • Size: 7.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/43.0.0 requests-toolbelt/0.9.1 tqdm/4.40.1 CPython/3.8.0

File hashes

Hashes for nwdiag-2.0.0.tar.gz
Algorithm Hash digest
SHA256 5cd7fafd6085cd762ca9171234d07d2a33c6e81f5c66a1b233992e76300d74e2
MD5 82975c822cc8052a73fb0c9ba8896d56
BLAKE2b-256 ddd59b4da88fe2d144a3f4dd08558de3130b7672c9029893f19629c7e749a903

See more details on using hashes here.

File details

Details for the file nwdiag-2.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: nwdiag-2.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.7 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/43.0.0 requests-toolbelt/0.9.1 tqdm/4.40.1 CPython/3.8.0

File hashes

Hashes for nwdiag-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 76b9a734d93e6c72efd357efd973094a84648b2b727a06e982e229ec9384336e
MD5 72d54fbb59d89e05e79a81998ef37e51
BLAKE2b-256 11330559d72e32f466b2f0986e603320bdbd30bd6a54bf5b22609c8b8451f3bc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page