k3kroki
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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| k3kroki-0.1.1.tar.gz | 8.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| k3kroki-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.4 kB
Release files / k3kroki-0.1.1.tar.gz
| Download URL | k3kroki-0.1.1.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
baf961923a697aaddf13aed02709adfb507aeeae9ff3faf76549891592fa9bf6
|
|
BLAKE2b-256 checksum How to use checksums |
261da0916328f90fc8fec0b05d621314e61b5d8eeaadc6917f11d6a522b6554f
|
| 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.1-py3-none-any.whl
| Download URL | k3kroki-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
efafcb0bed5f9d92de6af1ed9cdad873ef0946f5c70934afe1c5eeab5af2716a
|
|
BLAKE2b-256 checksum How to use checksums |
f703c00b748eba7c56657c7be4132a2c3d3af8c2bb760c8463ea1bc709718fcc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|