Documentation
pyDraw is a web interface for the diagrams library, allowing you to create beautiful architecture diagrams using Python code. Most of the diagrams docs apply to pyDraw, with the exceptions noted in Tips & Tricks.
Jump to specific topics:
Diagrams |
Nodes |
Clusters |
Edges |
All Nodes
Getting Started
To create a diagram:
- Write your diagram code in the editor on the home page
- Click "Generate Diagram" to create your visualization
- The diagram will appear in the preview pane
Tips & Tricks
- When naming diagrams, always use the format Diagram("My Diagram Name") instead of Diagram(name="My Diagram Name").
- pyDraw purges diagrams older than 5 minutes, so make sure you download your image before it's purged.
- Resubmitting updated code will not overwrite a previously-generated image with the same name. As a workaround....
- Wait 5 minutes until your previous image is purged, or
- Use a unique diagram name to see changes faster.
- The show=False parameter to trigger automatic download is disabled. Use the download diagram button instead.
Examples
Stateful Architecture on Kubernetes
Message Collecting System on GCP