index.html 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <title>Welcome to DrawioConvert’s documentation! &#8212; DrawioConvert 0.2 documentation</title>
  8. <link rel="stylesheet" href="_static/haiku.css" type="text/css" />
  9. <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  10. <link rel="stylesheet" type="text/css" href="_static/styles.css" />
  11. <script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
  12. <script type="text/javascript" src="_static/jquery.js"></script>
  13. <script type="text/javascript" src="_static/underscore.js"></script>
  14. <script type="text/javascript" src="_static/doctools.js"></script>
  15. <script type="text/javascript" src="_static/language_data.js"></script>
  16. <link rel="index" title="Index" href="genindex.html" />
  17. <link rel="search" title="Search" href="search.html" />
  18. <link rel="next" title="How to Execute DrawioConvert?" href="execute.html" />
  19. </head><body>
  20. <div class="header" role="banner"><h1 class="heading"><a href="#">
  21. <span>DrawioConvert 0.2 documentation</span></a></h1>
  22. <h2 class="heading"><span>Welcome to DrawioConvert’s documentation!</span></h2>
  23. </div>
  24. <div class="topnav" role="navigation" aria-label="top navigation">
  25. <p>
  26. <a class="uplink" href="#">Contents</a>
  27. &#160;&#160;::&#160;&#160;
  28. <a href="execute.html">How to Execute <code class="code docutils literal notranslate"><span class="pre">DrawioConvert</span></code>?</a>&#160;&#160;»
  29. </p>
  30. </div>
  31. <div class="content">
  32. <div class="section" id="welcome-to-drawioconvert-s-documentation">
  33. <h1>Welcome to DrawioConvert’s documentation!<a class="headerlink" href="#welcome-to-drawioconvert-s-documentation" title="Permalink to this headline">¶</a></h1>
  34. <p><code class="code docutils literal notranslate"><span class="pre">DrawioConvert</span></code> is a project that allows conversion from simple, yet
  35. structured <a class="reference external" href="https://www.diagrams.net">draw.io</a> diagrams to any kind of file.
  36. This usually provides a useful entrypoint for visual modelling of models that
  37. comply to a textual framework.</p>
  38. <p>Or, more specifically, this tool allows for the creation of graphical
  39. interfaces for code frameworks. Note that, while this tool was written in
  40. Python, any language is possible thanks to
  41. <a class="reference external" href="https://jinja.palletsprojects.com/en/2.11.x/">Jinja 2</a>.</p>
  42. <div class="section" id="requirements">
  43. <h2>Requirements<a class="headerlink" href="#requirements" title="Permalink to this headline">¶</a></h2>
  44. <ul class="simple">
  45. <li><dl class="first docutils">
  46. <dt>Standard Libraries:</dt>
  47. <dd><ul class="first last">
  48. <li><code class="code docutils literal notranslate"><span class="pre">xml</span></code> (for <code class="code docutils literal notranslate"><span class="pre">xml.etree.ElementTree</span></code>)</li>
  49. <li><code class="code docutils literal notranslate"><span class="pre">urllib</span></code> (for <code class="code docutils literal notranslate"><span class="pre">urllib.parse.unquote</span></code>)</li>
  50. <li><code class="code docutils literal notranslate"><span class="pre">argparse</span></code></li>
  51. <li><code class="code docutils literal notranslate"><span class="pre">base64</span></code></li>
  52. <li><code class="code docutils literal notranslate"><span class="pre">os</span></code></li>
  53. <li><code class="code docutils literal notranslate"><span class="pre">re</span></code></li>
  54. <li><code class="code docutils literal notranslate"><span class="pre">sys</span></code></li>
  55. <li><code class="code docutils literal notranslate"><span class="pre">zlib</span></code></li>
  56. </ul>
  57. </dd>
  58. </dl>
  59. </li>
  60. <li><dl class="first docutils">
  61. <dt>External Libraries:</dt>
  62. <dd><ul class="first last">
  63. <li><a class="reference external" href="https://jinja.palletsprojects.com/en/2.11.x/">Jinja 2</a></li>
  64. <li>Anything else that is required for the converted files to work.</li>
  65. </ul>
  66. </dd>
  67. </dl>
  68. </li>
  69. </ul>
  70. <div class="admonition warning">
  71. <p class="first admonition-title">Warning</p>
  72. <p class="last"><code class="code docutils literal notranslate"><span class="pre">DrawioConvert</span></code> does not execute the converted files, but only
  73. generates them! The user is required to install all components for the
  74. formalisms they like to use themselves.</p>
  75. </div>
  76. </div>
  77. <div class="section" id="how-does-it-work">
  78. <h2>How Does It Work?<a class="headerlink" href="#how-does-it-work" title="Permalink to this headline">¶</a></h2>
  79. <p>The core idea behind <code class="code docutils literal notranslate"><span class="pre">DrawioConvert</span></code> is the use of so-called “formalisms”.
  80. These are generic descriptions of how certain drawio files can (and should) be
  81. interpreted. They are provided with some setup information, a few template
  82. files, a drawio library and some documentation on their usage. From any drawio
  83. file (made according to the specification identified by the formalism) a new
  84. one will be generated that is complient with the drawn diagram and the selected
  85. formalism.</p>
  86. <p>This also allows drawio to be used for any block-based modelling language for
  87. which a graphical representation can be given and code generation can be
  88. defined.</p>
  89. </div>
  90. <div class="section" id="quick-links">
  91. <h2>Quick Links<a class="headerlink" href="#quick-links" title="Permalink to this headline">¶</a></h2>
  92. <div class="toctree-wrapper compound">
  93. <ul>
  94. <li class="toctree-l1"><a class="reference internal" href="execute.html">How to Execute <code class="code docutils literal notranslate"><span class="pre">DrawioConvert</span></code>?</a><ul>
  95. <li class="toctree-l2"><a class="reference internal" href="execute.html#commandline-arguments">Commandline Arguments</a></li>
  96. </ul>
  97. </li>
  98. <li class="toctree-l1"><a class="reference internal" href="formalisms/create.html">How To Create Custom Formalisms?</a><ul>
  99. <li class="toctree-l2"><a class="reference internal" href="formalisms/create.html#structure">Structure</a></li>
  100. <li class="toctree-l2"><a class="reference internal" href="formalisms/create.html#templates">Templates</a></li>
  101. </ul>
  102. </li>
  103. </ul>
  104. </div>
  105. </div>
  106. <div class="section" id="builtin-formalisms">
  107. <h2>Builtin Formalisms<a class="headerlink" href="#builtin-formalisms" title="Permalink to this headline">¶</a></h2>
  108. <div class="toctree-wrapper compound">
  109. <ul>
  110. <li class="toctree-l1"><a class="reference internal" href="formalisms/CBD.html">CBD Formalism</a></li>
  111. </ul>
  112. </div>
  113. </div>
  114. </div>
  115. <div class="section" id="indices-and-tables">
  116. <h1>Indices and tables<a class="headerlink" href="#indices-and-tables" title="Permalink to this headline">¶</a></h1>
  117. <ul class="simple">
  118. <li><a class="reference internal" href="genindex.html"><span class="std std-ref">Index</span></a></li>
  119. <li><a class="reference internal" href="py-modindex.html"><span class="std std-ref">Module Index</span></a></li>
  120. <li><a class="reference internal" href="search.html"><span class="std std-ref">Search Page</span></a></li>
  121. </ul>
  122. </div>
  123. </div>
  124. <div class="bottomnav" role="navigation" aria-label="bottom navigation">
  125. <p>
  126. <a class="uplink" href="#">Contents</a>
  127. &#160;&#160;::&#160;&#160;
  128. <a href="execute.html">How to Execute <code class="code docutils literal notranslate"><span class="pre">DrawioConvert</span></code>?</a>&#160;&#160;»
  129. </p>
  130. </div>
  131. <div class="footer" role="contentinfo">
  132. &#169; Copyright 2020, Randy Paredis.
  133. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.8.5.
  134. </div>
  135. </body>
  136. </html>