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

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.0
File Size Uploaded
k3kroki-0.1.0.tar.gz 8.3 kB Details

Built distribution (wheel)

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

Total release size: 14.4 kB

Release files / k3kroki-0.1.0.tar.gz

Download URL k3kroki-0.1.0.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b8fb14a1e3969bf1248c8dfccdb1d8cd939a670edc48fb37d22f1da146450afe
BLAKE2b-256 checksum
How to use checksums
368bc6779513bdff7d96b19f96dbf1b81c899fe391298138943a141f70e9a6bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

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

Download URL k3kroki-0.1.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f39bfe754c37fbbdc076a42a0828c5911a004fd748f09f4273ad4a578f78a07
BLAKE2b-256 checksum
How to use checksums
dcdb95c7aeee006416bd508b33ee8cb59e38dcbc11e4cf031b13c2b7b349b934
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

This release

0.1.0 This release

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