diagrams-js/python-migration
Installation
SKILL.md
This skill builds on diagrams-js/getting-started. Read it first for foundational concepts.
diagrams-js — Python Migration
Migrate from Python diagrams to TypeScript diagrams-js. Key syntax differences: context managers become function calls, operators become methods, explicit add() and async render().
Setup
Python vs TypeScript Side by Side
Python:
from diagrams import Diagram
from diagrams.aws.compute import EC2
with Diagram("My Diagram", show=False):
EC2("Web Server")