retroflow 0.8.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- retroflow/__init__.py +48 -0
- retroflow/generator.py +1803 -0
- retroflow/layout.py +239 -0
- retroflow/parser.py +99 -0
- retroflow/py.typed +0 -0
- retroflow/renderer.py +486 -0
- retroflow/router.py +343 -0
- retroflow-0.8.2.dist-info/METADATA +445 -0
- retroflow-0.8.2.dist-info/RECORD +11 -0
- retroflow-0.8.2.dist-info/WHEEL +4 -0
- retroflow-0.8.2.dist-info/licenses/LICENSE +21 -0
retroflow/__init__.py
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"""
|
|
2
|
+
RetroFlow - Beautiful ASCII Flowcharts
|
|
3
|
+
|
|
4
|
+
A Python library for generating ASCII flowcharts with intelligent Sugiyama layout.
|
|
5
|
+
|
|
6
|
+
Example:
|
|
7
|
+
>>> from retroflow import FlowchartGenerator
|
|
8
|
+
>>> generator = FlowchartGenerator()
|
|
9
|
+
>>> flowchart = generator.generate('''
|
|
10
|
+
... A -> B
|
|
11
|
+
... B -> C
|
|
12
|
+
... ''')
|
|
13
|
+
>>> print(flowchart)
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
from .generator import FlowchartGenerator
|
|
17
|
+
from .layout import LayoutResult, NodeLayout, SugiyamaLayout
|
|
18
|
+
from .parser import ParseError, Parser, parse_flowchart
|
|
19
|
+
from .renderer import (
|
|
20
|
+
BOX_CHARS_DOUBLE,
|
|
21
|
+
BOX_CHARS_ROUNDED,
|
|
22
|
+
BoxRenderer,
|
|
23
|
+
Canvas,
|
|
24
|
+
LineRenderer,
|
|
25
|
+
TitleRenderer,
|
|
26
|
+
)
|
|
27
|
+
from .router import BoxInfo, EdgeRoute, EdgeRouter
|
|
28
|
+
|
|
29
|
+
__version__ = "0.8.2"
|
|
30
|
+
|
|
31
|
+
__all__ = [
|
|
32
|
+
"FlowchartGenerator",
|
|
33
|
+
"Parser",
|
|
34
|
+
"ParseError",
|
|
35
|
+
"parse_flowchart",
|
|
36
|
+
"SugiyamaLayout",
|
|
37
|
+
"LayoutResult",
|
|
38
|
+
"NodeLayout",
|
|
39
|
+
"Canvas",
|
|
40
|
+
"BoxRenderer",
|
|
41
|
+
"BOX_CHARS_DOUBLE",
|
|
42
|
+
"BOX_CHARS_ROUNDED",
|
|
43
|
+
"LineRenderer",
|
|
44
|
+
"TitleRenderer",
|
|
45
|
+
"EdgeRouter",
|
|
46
|
+
"EdgeRoute",
|
|
47
|
+
"BoxInfo",
|
|
48
|
+
]
|