No description, website, or topics provided.
Branch: master
Clone or download
tk0miya Merge pull request #24 from Dridi/py37
Python 3.7 compatibility
Latest commit 30c6a2b Jul 8, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
src
.drone.io.sh Fix drone.io.sh; --use-mirrors option was deprecated Jul 30, 2015
.hgignore Convert CR/LF chars to LF Oct 17, 2013
CHANGES.rst
LICENSE * Change license to Apache license 2.0 May 7, 2011
MANIFEST.in
README.rst Remove empty lines from README Aug 22, 2015
bootstrap.py
buildout.cfg Revert tox.ini Apr 8, 2014
seqdiag.1 * Remove unused option: -P Oct 11, 2011
setup.cfg Enable flake8-copyright Aug 22, 2015
setup.py Fix dependency; webcolors-1.5 does not support py32 May 18, 2015
tox.ini

README.rst

seqdiag generate sequence-diagram image file from spec-text file.

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

Features

  • Generate sequence-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 seqdiag

Or

$ sudo pip seqdiag

Copy and modify ini file. example:

$ cp <seqdiag installed path>/blockdiag/examples/simple.diag .
$ vi simple.diag

Please refer to spec-text setting sample section for the format of the simpla.diag configuration file.

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 {
  browser  -> webserver [label = "GET /index.html"];
  browser <-- webserver;
  browser  -> webserver [label = "POST /blog/comment"];
              webserver  -> database [label = "INSERT comment"];
              webserver <-- database;
  browser <-- webserver;
}

Usage

Execute seqdiag command:

$ seqdiag 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