Skip to main content

diagrams logo

diagrams-editor

license pypi version python version

Fork of mingrammer/diagrams — Diagram as Code with an interactive web editor included out of the box.

Note: installs under the diagrams Python namespace and replaces the original diagrams package. Do not install both in the same virtualenv.

Install

uv add diagrams-editor

That's it. The web editor and all dependencies come in one command.

Usage

Open the web editor

# Empty canvas
uv run diagrams editor

# Pre-load an existing .py file
uv run diagrams editor architecture.py

Opens http://localhost:8888 in your browser. Drag nodes from the palette, draw edges, group into clusters — the Python code is generated live in the sidebar.

From there you can:

  • 📥 Import .py — load an existing diagrams file for visual editing
  • 💾 Save .py — download the generated Python code (Ctrl+S)
  • ⬇ Export PNG — download a screenshot of the canvas

One-off, without adding to the project

uvx --from diagrams-editor diagrams editor
uvx --from diagrams-editor diagrams editor architecture.py

Write diagrams in Python

from diagrams import Diagram, Cluster, Edge
from diagrams.aws.compute import ECS, Lambda
from diagrams.aws.database import RDS
from diagrams.aws.network import ALB

with Diagram("Web Service", direction="LR"):
    with Cluster("App"):
        svc = ECS("Service")
        fn  = Lambda("Worker")
    ALB("Load Balancer") >> svc >> RDS("Database")

Providers

aws azure gcp kubernetes alibaba oracle onprem generic saas

Full node list: diagrams.mingrammer.com/docs/nodes/aws

Examples

The examples/ folder contains ready-to-import .py files:

File Description
examples/web_app.py Three-tier web application
examples/ecommerce_platform.py Full e-commerce platform (34 nodes, 11 clusters)

License

MIT — fork of mingrammer/diagrams, original copyright retained.

Metadata

Release files for diagrams-editor 0.33.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for diagrams-editor 0.33.0
File Size Uploaded Provenance Actions
diagrams_editor-0.33.0.tar.gz 33.3 MB Without provenance Details for diagrams_editor-0.33.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for diagrams-editor 0.33.0
File Interpreter ABI Platform Actions
diagrams_editor-0.33.0-py3-none-any.whl Python 3 none any Details for diagrams_editor-0.33.0-py3-none-any.whl

Total release size: 67.9 MB

Release files / diagrams_editor-0.33.0.tar.gz

Download URL diagrams_editor-0.33.0.tar.gz
Size 33.3 MB
Tags Source
SHA-256 checksum
How to use checksums
08bc26a4ce45d709c280c3576748da3426a3b886fc03b794bc85a5280b7c920b
BLAKE2b-256 checksum
How to use checksums
1dca2e7d6c85a7f176e18d97a47dbe27878b6a96cde540787921bc4423e0ea8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.9 {"installer":{"name":"uv","version":"0.11.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / diagrams_editor-0.33.0-py3-none-any.whl

Download URL diagrams_editor-0.33.0-py3-none-any.whl
Size 34.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
a464a3afbe7ef87fa5131ca117b18c2e9ca5ee8a090d7c83f10cf6aa9e8a6f69
BLAKE2b-256 checksum
How to use checksums
2e861172a650d773e41f8ab29089d2c09a47fa849b4cd18d7d37ae6fe8170c2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.9 {"installer":{"name":"uv","version":"0.11.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for diagrams-editor 0.33.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page