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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kymostudio-0.4.6.tar.gz.
File metadata
- Download URL: kymostudio-0.4.6.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2810a4036364e1b49d7dc2766189583d82be1308b65ea22be24e00b161e00242
|
|
| MD5 |
88a5ce4fb002a556ad329c29a0a06106
|
|
| BLAKE2b-256 |
6c7cf85aa005f63cd097a8e74c8fdc5de6064b6bcc08f4f77be05e54efe8603e
|
Provenance
The following attestation bundles were made for kymostudio-0.4.6.tar.gz:
Publisher:
release-pypi.yml on kymostudio/kymostudio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kymostudio-0.4.6.tar.gz -
Subject digest:
2810a4036364e1b49d7dc2766189583d82be1308b65ea22be24e00b161e00242 - Sigstore transparency entry: 1810989025
- Sigstore integration time:
-
Permalink:
kymostudio/kymostudio@2e0b78d88e21e61ec9a175b858d4f7bfae87a13e -
Branch / Tag:
refs/tags/v0.4.6 - Owner: https://github.com/kymostudio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@2e0b78d88e21e61ec9a175b858d4f7bfae87a13e -
Trigger Event:
push
-
Statement type:
File details
Details for the file kymostudio-0.4.6-py3-none-any.whl.
File metadata
- Download URL: kymostudio-0.4.6-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c95b0c02030f4f76b7ab41f4f1b9527911f97b13154ade44c3ec861c47760f44
|
|
| MD5 |
e4ad519737438bd50be3c1703e1eaca7
|
|
| BLAKE2b-256 |
f283954e91ccc7fa1d668adca52d980eb31f2575c57a2fcefa24258d586230ca
|
Provenance
The following attestation bundles were made for kymostudio-0.4.6-py3-none-any.whl:
Publisher:
release-pypi.yml on kymostudio/kymostudio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kymostudio-0.4.6-py3-none-any.whl -
Subject digest:
c95b0c02030f4f76b7ab41f4f1b9527911f97b13154ade44c3ec861c47760f44 - Sigstore transparency entry: 1810989060
- Sigstore integration time:
-
Permalink:
kymostudio/kymostudio@2e0b78d88e21e61ec9a175b858d4f7bfae87a13e -
Branch / Tag:
refs/tags/v0.4.6 - Owner: https://github.com/kymostudio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@2e0b78d88e21e61ec9a175b858d4f7bfae87a13e -
Trigger Event:
push
-
Statement type: