using nwdiag as part of a python script?

130 views
Skip to first unread message

Jamie Duncan

unread,
Sep 10, 2015, 1:16:55 PM9/10/15
to blockdiag-discuss
Is there a solid (or even semi-firm) howto on how to create an nwdiag object from within a python application? 

I can't find one in the docs and it's not 5-minute obvious from the code that I could find.

Thanks!

jduncan

Komiya Takeshi

unread,
Sep 12, 2015, 1:46:19 AM9/12/15
to blockdia...@googlegroups.com
Hi Duncan,

Sorry, there is no stable APIs to create images through blockdiag (nwdiag too).
For now, you can do it using following codes:

from nwdiag.command import NwdiagApp
NwdiagApp.run(args) # args is options for nwdiag (array of string)

I hope this will help you.

Thanks,

Takeshi KOMIYA
> --
> このメールは Google グループのグループ「blockdiag-discuss」に登録しているユーザーに送られています。
> このグループから退会し、グループからのメールの配信を停止するには
> blockdiag-disc...@googlegroups.com にメールを送信してください。
> その他のオプションについては https://groups.google.com/d/optout にアクセスしてください。

Jamie Duncan

unread,
Sep 12, 2015, 8:19:51 AM9/12/15
to blockdia...@googlegroups.com
It does! Many Thanks!

このメールは Google グループのグループ「blockdiag-discuss」の登録者に送られています。
このトピックの登録を解除するには https://groups.google.com/d/topic/blockdiag-discuss/LJHpRTa-EUQ/unsubscribe にアクセスしてください。
このグループから退会し、グループのすべてのトピックの登録を解除するには blockdiag-disc...@googlegroups.com にメールを送信してください。
その他のオプションについては、https://groups.google.com/d/optout にアクセスしてください。

Adam Tauno Williams

unread,
Sep 12, 2015, 7:15:55 PM9/12/15
to blockdia...@googlegroups.com
I reverse engineered it a bit as I use it inside application.

<http://sourceforge.net/u/whitemice/whitemicehg/ci/default/tree/Scraps/
Python/blockdiag/>


--
Adam Tauno Williams <mailto:awil...@whitemice.org> GPG D95ED383
Systems Administrator, Python Developer, LPI / NCLA


Reply all
Reply to author
Forward
0 new messages