Skip to main content

k3kroki

Action-CI Documentation Status Package

Convert diagrams to images via the kroki.io API — zero local dependencies

k3kroki is a component of pykit3 project: a python3 toolkit set.

k3kroki converts diagrams to images via the free kroki.io HTTP API — no local tools needed.

Install

pip install k3kroki

Synopsis

import k3kroki

# Render a Graphviz diagram to SVG bytes
svg = k3kroki.convert("graphviz", "digraph { a -> b }")

# Render a Mermaid diagram and save to file
k3kroki.convert_to_file("mermaid", "graph TD\n  A --> B", "diagram.svg")

# Render PlantUML to PNG
png = k3kroki.convert("plantuml", "@startuml\nAlice -> Bob: hello\n@enduml", "png")

Author

Zhang Yanpo (张炎泼) drdr.xp@gmail.com

Copyright and License

The MIT License (MIT)

Copyright (c) 2015 Zhang Yanpo (张炎泼) drdr.xp@gmail.com

Metadata

Release files for k3kroki 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for k3kroki 0.1.4
File Size Uploaded
k3kroki-0.1.4.tar.gz 9.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for k3kroki 0.1.4
File Interpreter ABI Platform
k3kroki-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 15.4 kB

Release files / k3kroki-0.1.4.tar.gz

Download URL k3kroki-0.1.4.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
869f61932128975c877a1330a466a6edc47f95b4ab2877f6c6ff784192fb0863
BLAKE2b-256 checksum
How to use checksums
46992e5b8ed0061f74e94296b317a191d73598f89329fbad1591104d48fee360
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / k3kroki-0.1.4-py3-none-any.whl

Download URL k3kroki-0.1.4-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e304e2243c9d2a61022c5924c4df9b0e20100fe7dacaa75e30cb0b1025acbd08
BLAKE2b-256 checksum
How to use checksums
a4e05638944c9307e159ea76adee8df945134667c5ba1bf2d1179d685582a729
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release 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