Skip to main content

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

Project description

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

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 tk0miya.bitbucket.org .

Setup

by easy_install

Make environment:

$ easy_install seqdiag

by buildout

Make environment:

$ hg clone http://bitbucket.org/tk0miya/seqdiag
$ cd seqdiag
$ python bootstrap.py
$ bin/buildout

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 tk0miya.bitbucket.org .

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.4 or later (not support 3.x)

  • Python Imaging Library 1.1.6 or later.

  • funcparserlib 0.3.4 or later.

  • setuptools or distriubte.

License

Python Software Foundation License.

History

0.1.6 (2011-01-15)

  • Support blockdiag-0.6.3

  • Fix bugs

0.1.5 (2011-01-15)

  • Draw activity on lifelines

  • Support both direction edge with ‘=>’ operator

0.1.4 (2011-01-13)

  • Change synxtax around edges

0.1.3 (2011-01-12)

  • Support diagonal edge

  • Fix bugs

0.1.2 (2011-01-11)

  • Support nested edges

  • Add edge attributes; return, dir

  • Add sphinx extention module(sphinxcontrib_seqdiag)

  • Fix bugs

0.1.1 (2011-01-11)

  • Fix bugs about layouting

0.1.0 (2011-01-08)

  • first release

Todos

Functionals

  • lifeline’s activity

  • lifeline stopper

  • combination fragments

  • instantiating and destroying object

Known Issues

  • Nothing yet

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

seqdiag-0.1.6.tar.gz (16.8 kB view details)

Uploaded Source

File details

Details for the file seqdiag-0.1.6.tar.gz.

File metadata

  • Download URL: seqdiag-0.1.6.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for seqdiag-0.1.6.tar.gz
Algorithm Hash digest
SHA256 e857cc59c638fe87cd3e52f8f0e65896838cf0c73a1e4bc490aeaf759e94b578
MD5 cce8d5cfda1783ab4c648030c16c652a
BLAKE2b-256 bfb020413a5a89eb0e990b0be47410be1ac5dbdb31a9d33ce725fcc2fc8a38af

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