Skip to main content

SILCO (System Illustration & Layout Composer)

Silco is a Python-first diagram toolkit built around a small microkernel. The core owns the document model, layout contracts, and plugin registry; renderers, styles, and presenters plug into that kernel. The default SVG renderer now uses the diagrams package with C4-flavored Graphviz output so the generated diagrams read like real system design documentation instead of custom-drawn boxes.

from silco import diagram

d = (
    diagram("Checkout")
    .node("user", "User", kind="actor")
    .node("api", "API", kind="service", group="app")
    .node("db", "Orders DB", kind="database", group="data")
    .connect("user", "api", "HTTPS")
    .connect("api", "db", "SQL")
)

svg = d.to_svg(style="modern")

Runtime requirement: Graphviz must be installed and dot must be on PATH.

Built-ins are registered through the kernel on import. Styles, layouts, and optional renderers stay discoverable:

from silco import kernel

kernel.names("layouts")      # ("dag", "grid")
kernel.names("renderers")    # ("svg", "mermaid", ...)
kernel.names("styles")       # ("modern", "uml")
kernel.discover()            # optional plugin discovery

Render the same diagram in different ways:

svg = d.to_svg(style="uml", layout="dag", title=True)
mermaid = d.to_mermaid()

In IPython/Jupyter:

%load_ext silco.plugins.ipython
d

Export as PDF with the optional CairoSVG-backed renderer plugin:

pip install "silco[pdf]"
d.save_pdf("checkout.pdf")
pdf_bytes = d.to_pdf()

Plugin categories:

kernel.categories()
kernel.names("renderers")
kernel.names("presenters")

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

silco-0.1.2.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

silco-0.1.2-py3-none-any.whl (29.8 kB view details)

Uploaded Python 3

File details

Details for the file silco-0.1.2.tar.gz.

File metadata

  • Download URL: silco-0.1.2.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for silco-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1ffa800dfa65b2ef32407ba00a1468d703ab1917d73aea0f2a700772c5c4c838
MD5 e3a31f36590c1ea7e3e75e9c6c27bc2d
BLAKE2b-256 097d6883f9cec8200f9e4111bd34e8a0bd6f7c5ecf9a95856486d5c6fb1e7505

See more details on using hashes here.

Provenance

The following attestation bundles were made for silco-0.1.2.tar.gz:

Publisher: workflow.yaml on maniebra/silco

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file silco-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: silco-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 29.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for silco-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 657c4a490b0e449a270d8b6bf95aa50109ddfda65c99ad6e5d9c974c1f3e65ee
MD5 d26e1e78d37aea68efbb04f8f956198d
BLAKE2b-256 ed6ff9779fa181ef0331af0f2c030cc03eb89bfd098776a3da6c589773ec976e

See more details on using hashes here.

Provenance

The following attestation bundles were made for silco-0.1.2-py3-none-any.whl:

Publisher: workflow.yaml on maniebra/silco

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.9.8

2 files

0.1.3

2 files

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 files

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