diff --git a/diagram-c0af1cf b/diagram-c0af1cf new file mode 100644 index 00000000..7e9f3ba5 --- /dev/null +++ b/diagram-c0af1cf @@ -0,0 +1,8 @@ +digraph "diagram-c0af1cf" { + graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label="diagram-c0af1cf" nodesep=0.60 pad=2.0 rankdir=LR ranksep=0.75 splines=ortho] + node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4] + edge [color="#7B8894"] + c72b9d95921943db990cc46ba03d5b8b [label=<system 1
[System]
> fillcolor=dodgerblue4 fixedsize=true fontcolor=white height=1 labelloc=c shape=rect style=filled width=2] + b1131c82c8a54cf8a697ae775d37acf0 [label=<system 2
[System]
> fillcolor=dodgerblue4 fixedsize=true fontcolor=white height=1 labelloc=c shape=rect style=filled width=2] + c72b9d95921943db990cc46ba03d5b8b -> b1131c82c8a54cf8a697ae775d37acf0 [color=gray60 constraint=False dir=forward fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 style=dashed] +} diff --git a/diagram-e5a94d3 b/diagram-e5a94d3 new file mode 100644 index 00000000..c443c687 --- /dev/null +++ b/diagram-e5a94d3 @@ -0,0 +1,9 @@ +digraph "diagram-e5a94d3" { + graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label="diagram-e5a94d3" nodesep=0.60 pad=2.0 rankdir=LR ranksep=0.75 splines=ortho] + node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4] + edge [color="#7B8894"] + subgraph cluster_System { + graph [bgcolor=white fontname="Sans-Serif" fontsize=12 label=System labeljust=l margin=16 pencolor="#AEB6BE" rankdir=LR shape=box style=dashed] + "592242be7e0145a49ef192066cae1f63" [label=<container
[Container: type]

description

> fillcolor=dodgerblue3 fixedsize=true fontcolor=white height=1.6 labelloc=c shape=rect style=filled width=2.6] + } +} diff --git a/diagram-eaf0ab7 b/diagram-eaf0ab7 new file mode 100644 index 00000000..f1151e38 --- /dev/null +++ b/diagram-eaf0ab7 @@ -0,0 +1,7 @@ +digraph "diagram-eaf0ab7" { + graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label="diagram-eaf0ab7" nodesep=0.60 pad=2.0 rankdir=LR ranksep=0.75 splines=ortho] + node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4] + edge [color="#7B8894"] + "24468c3baedb4508a9b8e8bade0f3d5e" [label=<person
[External Person]
> fillcolor=gray60 fixedsize=true fontcolor=white height=1 labelloc=c shape=rect style="rounded,filled" width=2] + e7c4e1c1e9a84f2483022bb31c4f9208 [label=<external
[External System]
> fillcolor=gray60 fixedsize=true fontcolor=white height=1 labelloc=c shape=rect style=filled width=2] +} diff --git a/diagram-ecb3d63 b/diagram-ecb3d63 new file mode 100644 index 00000000..baf9e384 --- /dev/null +++ b/diagram-ecb3d63 @@ -0,0 +1,7 @@ +digraph "diagram-ecb3d63" { + graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label="diagram-ecb3d63" nodesep=0.60 pad=2.0 rankdir=LR ranksep=0.75 splines=ortho] + node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4] + edge [color="#7B8894"] + "430f4de0b37c4101abf3eac190ba9268" [label=<system
[System]

The internal system.

> fillcolor=dodgerblue4 fixedsize=true fontcolor=white height=1.6 labelloc=c shape=rect style=filled width=2.6] + "4a0ca384bda048a6853f58f613016af3" [label=<unknown
[System]
> fillcolor=dodgerblue4 fixedsize=true fontcolor=white height=1 labelloc=c shape=rect style=filled width=2] +} diff --git a/diagram-efecb5c b/diagram-efecb5c new file mode 100644 index 00000000..33229f19 --- /dev/null +++ b/diagram-efecb5c @@ -0,0 +1,8 @@ +digraph "diagram-efecb5c" { + graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label="diagram-efecb5c" nodesep=0.60 pad=2.0 rankdir=LR ranksep=0.75 splines=ortho] + node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4] + edge [color="#7B8894"] + "9418f8e9a0a44f9f99dcc006c22de220" [label=<person
[Person]

A person.

> fillcolor=dodgerblue4 fixedsize=true fontcolor=white height=1.6 labelloc=c shape=rect style="rounded,filled" width=2.6] + "923b851349c94f0aaa3f1e10a3083a52" [label=<container
[Container: Java application]

The application.

> fillcolor=dodgerblue3 fixedsize=true fontcolor=white height=1.6 labelloc=c shape=rect style=filled width=2.6] + "98bf42f6b090418fb09f6cbcdf8873ce" [label=<database
[Database: Oracle database]

Stores information.

> fillcolor=dodgerblue3 fixedsize=true fontcolor=white height=1.6 labelloc=b shape=cylinder style=filled width=2.6] +} diff --git a/diagram-f276bc0 b/diagram-f276bc0 new file mode 100644 index 00000000..e7365d53 --- /dev/null +++ b/diagram-f276bc0 @@ -0,0 +1,9 @@ +digraph "diagram-f276bc0" { + graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label="diagram-f276bc0" nodesep=0.60 pad=2.0 rankdir=LR ranksep=0.75 splines=ortho] + node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4] + edge [color="#7B8894"] + d203be521dbd43c8aeb03d4a6b8e5191 [label=<container1
[Container]
> fillcolor=dodgerblue3 fixedsize=true fontcolor=white height=1 labelloc=c shape=rect style=filled width=2] + "387f4dac0f604af3a548a3b973dacf7d" [label=<container2
[Container]
> fillcolor=dodgerblue3 fixedsize=true fontcolor=white height=1 labelloc=c shape=rect style=filled width=2] + d203be521dbd43c8aeb03d4a6b8e5191 -> "387f4dac0f604af3a548a3b973dacf7d" [label=<depends on> color=gray60 dir=forward fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 style=dashed] + d203be521dbd43c8aeb03d4a6b8e5191 -> "387f4dac0f604af3a548a3b973dacf7d" [label=<is depended on by> color=gray60 dir=back fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 style=dashed] +} diff --git a/diagram-f5717ea b/diagram-f5717ea new file mode 100644 index 00000000..ad7be85e --- /dev/null +++ b/diagram-f5717ea @@ -0,0 +1,8 @@ +digraph "diagram-f5717ea" { + graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label="diagram-f5717ea" nodesep=0.60 pad=2.0 rankdir=LR ranksep=0.75 splines=ortho] + node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4] + edge [color="#7B8894"] + "880dd86b8a1d4b36ab1c6558f9f58809" [label=<container1
[Container]
> fillcolor=dodgerblue3 fixedsize=true fontcolor=white height=1 labelloc=c shape=rect style=filled width=2] + b64353b35e3d4d01ac8fb8f1f2b6165b [label=<container2
[Container]
> fillcolor=dodgerblue3 fixedsize=true fontcolor=white height=1 labelloc=c shape=rect style=filled width=2] + "880dd86b8a1d4b36ab1c6558f9f58809" -> b64353b35e3d4d01ac8fb8f1f2b6165b [dir=forward fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13] +} diff --git a/diagrams_image b/diagrams_image new file mode 100644 index 00000000..a97525d9 --- /dev/null +++ b/diagrams_image @@ -0,0 +1,6 @@ +digraph { + graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label="" nodesep=0.60 pad=2.0 rankdir=LR ranksep=0.75 splines=ortho] + node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4] + edge [color="#7B8894"] + be3e7011f7514ee492a580db1dcacc8e [label=node1] +} diff --git a/example_1 b/example_1 new file mode 100644 index 00000000..2b8940db --- /dev/null +++ b/example_1 @@ -0,0 +1,6 @@ +digraph "Example 1" { + graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label="Example 1" nodesep=0.60 pad=2.0 rankdir=LR ranksep=0.75 splines=ortho] + node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4] + edge [color="#7B8894"] + "8111bf35d7e14c0cb56fbd84c6e7a187" [label=node1] +} diff --git a/file1.py b/file1.py new file mode 100644 index 00000000..46f07282 --- /dev/null +++ b/file1.py @@ -0,0 +1,4 @@ + +from diagrams import Diagram +with Diagram(name="Test", show=False): + pass diff --git a/file2.py b/file2.py new file mode 100644 index 00000000..e6370e77 --- /dev/null +++ b/file2.py @@ -0,0 +1,12 @@ + +from diagrams import Diagram +from diagrams.aws.compute import EC2 +from diagrams.aws.database import RDS +from diagrams.aws.network import ELB + +with Diagram("test_2", show=False, direction="TB"): + ELB("lb") >> [EC2("ワーカー1"), + EC2("작업자 2를"), + EC2("робітник 3"), + EC2("worker4"), + EC2("työntekijä 4")] >> RDS("events") diff --git a/my_custom_name b/my_custom_name new file mode 100644 index 00000000..6b00aa6d --- /dev/null +++ b/my_custom_name @@ -0,0 +1,6 @@ +digraph "Example 1" { + graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label="Example 1" nodesep=0.60 pad=2.0 rankdir=LR ranksep=0.75 splines=ortho] + node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4] + edge [color="#7B8894"] + "4ad261638b564255b7c82ce358aa7811" [label=node1] +} diff --git a/test b/test new file mode 100644 index 00000000..8f0382ff --- /dev/null +++ b/test @@ -0,0 +1,5 @@ +digraph Test { + graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label=Test nodesep=0.60 pad=2.0 rankdir=LR ranksep=0.75 splines=ortho] + node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4] + edge [color="#7B8894"] +} diff --git a/test_diagram.py b/test_diagram.py new file mode 100644 index 00000000..46f07282 --- /dev/null +++ b/test_diagram.py @@ -0,0 +1,4 @@ + +from diagrams import Diagram +with Diagram(name="Test", show=False): + pass diff --git a/test_resources_render b/test_resources_render new file mode 100644 index 00000000..acb6c1a8 --- /dev/null +++ b/test_resources_render @@ -0,0 +1,7 @@ +digraph test_resources_render { + graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label=test_resources_render nodesep=0.60 pad=2.0 rankdir=LR ranksep=0.75 splines=ortho] + node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4] + edge [color="#7B8894"] + e3bddeae331a4c14869f108a92ac3b80 [label="test-ec2" height=1.9 image="/home/runner/work/diagrams/diagrams/resources/aws/compute/ec2.png" shape=none] + "9ec4b6d0627149d28dda2ccb2792fcb3" [label="test-rds" height=1.9 image="/home/runner/work/diagrams/diagrams/resources/aws/database/rds.png" shape=none] +}