- http://tk0miya.bitbucket.org/
- http://tk0miya.bitbucket.org/blockdiag/build/html/index.html
- http://tk0miya.bitbucket.org/blockdiag-ja/build/html/index.html
- http://labs.timedia.co.jp/2011/05/sphinx-blockdiag-yokohamapm-201105.html
- http://www.slideshare.net/TakeshiKomiya/blodkdiag-python-workshop-201012
blockdiag
blockdiag generate block-diagram image file from .diag file. .diag file is similar to DOT file (graphvizâs).
ã¨ããã¨ãããgraphviz ã¨åæ§ã«textããå³ãçæã§ããç´ æµsoftwareãpython製ã
sample:
ç¹å¾´
ããã¥ã¡ã³ãããã£ã¨æãèªã¿ãã第ä¸å°è±¡ã
- ãã¼ãã®å½¢(shape) ã®ç¨®é¡ããç·ã®ç¨®é¡ãgraphviz ããè±å¯
- ç»åãè²ã®è¦ãç®ãgraphvizãã è¦ãããã¦ãã£ããã (å½±ãã¤ãã¦ãã¨ã
- ãã¼ãéãé
ç·ãç´è§ã§ããã (graphvizã¯æããªã
- ããããªãã¨ãããããªããã©ãå人çã«ã¯ãããããªãæ°ã«å ¥ã£ã¦ãã
- graphvizã§NWæ§æå³æ¸ãã¨ã丸ã¿ã帯ã³ã¦ãã¾ã£ã¦ç· ã¾ããªãæãã«ãªãã®ã§
- pngã®ä»ã«svg,pdfã§åºåå¯è½
- sphinx (ããã¥ã¡ã³ãçæãã¼ã«) ã¨ã®é£æºãå¯è½
ç´è§ã®ä»¶ã«ã¤ãã¦ã¯twitter ã§ä½è ã®æ¹ããreplyãããã¾ãããï¾ï½°ï¾ï½°
install
bitbucketã®å
¬å¼ã«è©³ç´°ãæ¸ãã¦ã¾ããpython ã§åºæ¥ã¦ããã®ã§easy_install ããinstallã
debian 5.0 ã ã¨ãaptã§python-setuptools ã«å
¥ã£ã¦ãã
$ sudo apt-get install python-setuptools $ sudo easy_install blockdiag
pdfå½¢å¼ã§åºåãããå ´å㯠å¼æ°ã¤ãã¦blockdiagãinstallãpythonã®reportlabããããèªåã®ç°å¢ã ã¨easy_install ã§ã¯reportlabãå ¥ããªãã£ãã®ã§ããããaptã§å ¥ããã
$ sudo apt-get install python-reportlab $ sudo easy_install "blockdiag[pdf]"
ãã®ä»
blockdiag 以å¤ã«ã親æã®nwdiag(networkæ§æå³), seqdiag(sequence), actdiag(ã¢ã¯ãã£ããã£å³) ãããã