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.3

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.3
File Size Uploaded
k3kroki-0.1.3.tar.gz 8.5 kB Details

Built distribution (wheel)

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

Total release size: 14.7 kB

Release files / k3kroki-0.1.3.tar.gz

Download URL k3kroki-0.1.3.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b56015fcd14c0bef070ed7f7fa0940126f05434eac1acd76767527965bc50802
BLAKE2b-256 checksum
How to use checksums
0aded43fa89651c19382faf43b43712abd5231ed4b123ed8ba20db3698b46060
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.3-py3-none-any.whl

Download URL k3kroki-0.1.3-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe284191ceabb91e174e46c5e18264f825a83ed382dbe14f77e59b11f7162cb3
BLAKE2b-256 checksum
How to use checksums
49e0cb224f5e3390ecfa7f856fa0cd133f1e9ca4fd7c7c28c4e449446bd66ca3
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

0.1.4

2 release files

This release

0.1.3 This release

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