Skip to main content

blockdiag translator with ikazuchi

Project description

ikazuchi.plugins.blockdiag is plugin for ikazuchi to work with blockdiag.

ikazuchi is intended to work with other tools since it’s a CUI tool.

See the project documentation for more detail.

Features

  • Work with blockdiag as ikazuchi Translator

Setup

by easy_install

Make environment:

$ easy_install ikazuchi.plugins.blockdiag

by buildout

Make environment:

$ hg clone https://bitbucket.org/t2y/ikazuchi.plugins.blockdiag
$ cd ikazuchi.plugins.blockdiag
$ python bootstrap.py -d
$ bin/buildout

Usage

Show blockdiag’s diagram with web browser. For example, use Firefox:

$ export BROWSER="firefox"  # can set any browser(command)
$ ikazuchi blockdiag -s "{A -> B;}"

Show blockdiag’s diagram from “.diag” file with web browser:

$ ikazuchi blockdiag -d examples/simple.diag

Show blockdiag’s diagram with Tkinter Editor:

$ ikazuchi blockdiag -i -d examples/simple.diag

Show which plugins are available:

$ ikazuchi -h
usage: ikazuchi [-h] {rstfile,blockdiag,normal} ...

positional arguments:
  {rstfile,blockdiag,normal}
                        available plugins. 'normal' means ikazuchi's standard
                        feature so it can be abbreviated

optional arguments:
  -h, --help            show this help message and exit

Show blockdiag plugin help:

$ ikazuchi blockdiag -h
usage: ikazuchi blockdiag [-h] [-a API] [-e ENCODING] [-f LANG] [-q] [-t LANG]
                          [-d DIAG FILE] [-i] [-s SENTENCE] [--version]

optional arguments:
  -h, --help            show this help message and exit
  -a API, --api API     APIs are ['google', 'microsoft']
  -e ENCODING, --encoding ENCODING
                        input/output encoding
  -f LANG, --from LANG  original language
  -q, --quiet           not to show original sentence to stdout
  -t LANG, --to LANG    target language to translate
  -d DIAG FILE, --diag DIAG FILE
                        target diag file
  -i, --interactive     run with interactive mode
  -s SENTENCE, --sentence SENTENCE
                        target sentence
  --version             show program's version number and exit

Requirements

  • Python 2.6 or later

  • ikazuchi 0.5.2 or later

  • blockdiag 0.8.1 or later

  • Tkinter

  • setuptools or distriubte

License

Apache License 2.0

History

0.1.0 (2011-06-10)

  • first release

Todos

  • Save an image file generated by blockdiag

  • Resize each widget on BlockdiagEditor

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

ikazuchi.plugins.blockdiag-0.1.0.tar.bz2 (13.8 kB view hashes)

Uploaded source

Supported by

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