Skip to main content

Type it. See it appear. Watch it animate.

Project description

kymostudio

Type 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)

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.md for 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.3.0.tar.gz (372.3 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.3.0-py3-none-any.whl (88.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for kymostudio-0.3.0.tar.gz
Algorithm Hash digest
SHA256 47692a6fc8bfaab10bbd656a9787313353a85e76cbaa16111a9f875e058639b5
MD5 d0a01785ef05e6670b2658709e532790
BLAKE2b-256 465a3f468bde8328312eed72b3f03d71f0b1fb2772b609182b1d60d8b74c02ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for kymostudio-0.3.0.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.3.0-py3-none-any.whl.

File metadata

  • Download URL: kymostudio-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 88.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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38e02590f1f765ce3614d2a2d372022718c15047a34f2e6af97be57d611f1c7c
MD5 15849b84dae0a42d6925939066679d61
BLAKE2b-256 38f5456dfe7a273da2c19692fb3d19419b72af01eba3e8b1c24a25c3cc7b99bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for kymostudio-0.3.0-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