Skip to main content

Prompt it. See it appear. Watch it animate.

Project description

kymostudio

Diagram superpowers — prompt it, see it appear, watch it animate.

Install

pip install kymostudio
# or
uv tool install kymostudio

Convert (CLI)

kymo path/to/diagram.kymo              # → path/to/diagram.svg
kymo path/to/diagram.kymo --animate    # → path/to/diagram-animated.svg
kymo path/to/diagram.kymo --figma      # → path/to/diagram.figma.js
kymo path/to/diagram.kymo --excalidraw # → path/to/diagram.excalidraw
kymo path/to/process.bpmn                 # → path/to/process.svg (BPMN 2.0)
kymo path/to/diagram.kymo out.png         # render, then rasterize to PNG (resvg)
kymo path/to/diagram.kymo out.png -s 2    # 2× resolution
kymo path/to/image.svg out.png            # rasterize an existing SVG
kymo path/to/image.svg                    # → path/to/image.png
kymo lint path/to/process.bpmn            # report BPMN structural + import issues

PNG output rasterizes via kymostudio-core (the shared resvg engine), installed automatically as a dependency.

See samples/ for complete example .kymo and .bpmn files.

BPMN 2.0 import

A standard .bpmn file (from bpmn.io / Camunda Modeler / Signavio …) renders to SVG using the geometry in the file's Diagram-Interchange section — no layout pass runs. See docs/formats/bpmn/ for the BPMN 2.0.2 normative reference and the element mapping (import + export).

from kymo import parse_bpmn, render

diagram = parse_bpmn(open("process.bpmn").read())
svg = render(diagram)

Python API

from kymo import parse, layout, resolve_alignments, render

diagram, layout_spec, external = parse(open("diagram.kymo").read())
if layout_spec:
    layout(diagram, layout_spec, external)
resolve_alignments(diagram)
svg = render(diagram, animate=True)

Develop

uv run --group dev python -m pytest -q       # run the test suite

License

Apache License 2.0 — see LICENSE.

Project details


Download files

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

Source Distribution

kymostudio-0.4.5.tar.gz (386.8 kB view details)

Uploaded Source

Built Distribution

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

kymostudio-0.4.5-py3-none-any.whl (96.1 kB view details)

Uploaded Python 3

File details

Details for the file kymostudio-0.4.5.tar.gz.

File metadata

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

File hashes

Hashes for kymostudio-0.4.5.tar.gz
Algorithm Hash digest
SHA256 caa3db638b05765b6d3bde1374cf01865f1e4f3fe589de33a4ab3a1d105f10ba
MD5 aa9d8d2100f4193141f866bbf049fd07
BLAKE2b-256 2c09ecceaa0ddf504a670f53ee46d087dda3309aaa9c05b2f37007aed0f56eda

See more details on using hashes here.

Provenance

The following attestation bundles were made for kymostudio-0.4.5.tar.gz:

Publisher: release-pypi.yml on kymostudio/kymostudio

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

File details

Details for the file kymostudio-0.4.5-py3-none-any.whl.

File metadata

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

File hashes

Hashes for kymostudio-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 708e1acf023f9131f5e8c9be12bcc772996840ec1d905d5bcc2763685ff4fe25
MD5 29ab1a096fb65d43ace50c86befb288b
BLAKE2b-256 56e93bf8d6e1b94481fbb3b1d9f8b554f6f37197dfced37840d94a96f8150ca0

See more details on using hashes here.

Provenance

The following attestation bundles were made for kymostudio-0.4.5-py3-none-any.whl:

Publisher: release-pypi.yml on kymostudio/kymostudio

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page