$npx skillfedfor your agent

pystructurizr

A Python DSL inspired by Structurizr, intended for generating C4 diagrams

With conditionsPyPI Software DevelopmentReleased Jul 202393.3K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pystructurizr-0.1.3-py3-none-any.whl
v0.1.3 · released 2023-07-27 · 8 runtime deps: watchdog, click, httpx, aiofiles, httpwatcher, google-cloud-storage, boto3, setuptools

Yes, if you need to define C4 diagrams programmatically and prefer Python over Structurizr DSL syntax. The low install friction and permissive license make it accessible. However, proceed with caution: the package is in alpha, dormant since 2023, and has no known vulnerabilities but also no recent maintenance. It's suitable for personal projects or teams comfortable maintaining a stalled dependency, but risky for production systems requiring active support.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with a pure-Python wheel and eight runtime dependencies including watchdog, click, httpx, and cloud storage libraries (google-cloud-storage, boto3).
  • Maintenance is dormant—last release was 2023-07-27 and last commit 2024-03-06, though the repository remains active and unarchived.

License · maintenance · safety

MIT (permissive) — MIT license (permissive) means you can use, modify, and distribute this package freely with minimal restrictions, making it suitable for both open-source and commercial projects.

last release 2023-07-27 (1114 days) · last repo commit 2024-03-06 · 149 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 93,341 downloads/mo, #13,391 on PyPI

Verify before relying

pip install pystructurizr

from pystructurizr.dsl import Workspace

with Workspace() as workspace:
    with workspace.Model(name="model") as model:
        user = model.Person("User")
        with model.SoftwareSystem("System") as sys:
            app = sys.Container("App")
    user.uses(app, "Uses")
  • Whether the package works reliably with Python versions beyond 3.8, given classifiers list only up to 3.8
  • Current state of kroki.io integration and whether the online diagram rendering service remains stable
  • Whether dormant maintenance status affects bug fixes or compatibility with recent Structurizr DSL changes
Same gist for agents: .md · .json

What it is and what it does

PyStructurizr is a Python library that lets you define C4 software architecture diagrams using Python code instead of Structurizr's custom DSL language. It translates Python model definitions—persons, software systems, containers, and their relationships—into diagrams that can be viewed, exported, or uploaded to cloud storage. The package includes a CLI with three main modes: dump (convert Python to Structurizr DSL), dev (live preview in a browser), and build (generate SVG and upload to cloud providers like google-cloud-storage or boto3).

The library's main appeal is that it lets you use Python's full expressiveness—imports, functions, loops, version control—to manage architecture diagrams as code, rather than dealing with a custom language's syntax and primitive file-inclusion mechanisms. It depends on watchdog for file monitoring, click for CLI commands, httpx for HTTP requests, and cloud storage SDKs for upload functionality. The package is in alpha status and has been dormant since mid-2023, so active development has stalled.

Use it for

  • Define C4 architecture diagrams in Python and export them to Structurizr DSL format for sharing or further editing
  • Generate live previews of architecture diagrams while editing Python model code in a development workflow
  • Convert Python-defined architecture models to SVG and automatically upload them to cloud storage for embedding in documentation
  • Organize large architecture models using Python's import and module system instead of Structurizr DSL's limited file inclusion
  • Version-control architecture diagrams as Python code alongside application source code for team collaboration

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need to define C4 diagrams programmatically and prefer Python over Structurizr DSL syntax.

The low install friction and permissive license make it accessible. However, proceed with caution: the package is in alpha, dormant since 2023, and has no known vulnerabilities but also no recent maintenance. It's suitable for personal projects or teams comfortable maintaining a stalled dependency, but risky for production systems requiring active support.

Install

pystructurizr on PyPI

Before you install

Low install friction with a pure-Python wheel and eight runtime dependencies including watchdog, click, httpx, and cloud storage libraries (google-cloud-storage, boto3). Maintenance is dormant—last release was 2023-07-27 and last commit 2024-03-06, though the repository remains active and unarchived.

License in practice

MIT license (permissive) means you can use, modify, and distribute this package freely with minimal restrictions, making it suitable for both open-source and commercial projects.

Quickstart

pip install pystructurizr

from pystructurizr.dsl import Workspace

with Workspace() as workspace:
    with workspace.Model(name="model") as model:
        user = model.Person("User")
        with model.SoftwareSystem("System") as sys:
            app = sys.Container("App")
    user.uses(app, "Uses")

Verify before relying

  • Whether the package works reliably with Python versions beyond 3.8, given classifiers list only up to 3.8
  • Current state of kroki.io integration and whether the online diagram rendering service remains stable
  • Whether dormant maintenance status affects bug fixes or compatibility with recent Structurizr DSL changes

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
8 packages
watchdogclickhttpxaiofileshttpwatchergoogle-cloud-storageboto3setuptools
MaintenanceDormant 1,114 days since the last release
Last repo commit
First released
Downloads93,341 / month, #13,391 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8

Evidence: pystructurizr-0.1.3-py3-none-any.whl

Tags

Capabilities
C4 diagram generation Pythonarchitecture diagram as codeStructurizr Python DSLsoftware architecture visualizationdiagram code to SVGlive diagram previewcloud storage diagram upload
Topics
architecture-as-codediagram-generationc4-model

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “C4 diagram generation Python”

  • pystructurizrPyStructurizr provides a Python DSL for defining C4 software…
  • mermaid-builderProgrammatically generates MermaidJS diagram markup (flowcharts,…
  • mermaid-pymermaid-py provides a Python interface to the Mermaid diagram…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also diagrams · seedir · torchviz · schemdraw · sphinxcontrib-plantuml · wavedrom · flydsl · cytriangle · plantuml · pictex