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

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

Built distribution (wheel)

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

Total release size: 14.4 kB

Release files / k3kroki-0.1.2.tar.gz

Download URL k3kroki-0.1.2.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
efc7ceaa1e68ea02230b0b1db83c8b4797242225d452dcd93c8f1e29dc69f8b4
BLAKE2b-256 checksum
How to use checksums
b41a1dc29893181a810a2cf52bfe2f1e549897086c85b43da2283bdc5b8a1fc5
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.2-py3-none-any.whl

Download URL k3kroki-0.1.2-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aafc7c8963834b7f8eacc06e5c6582c5a43cd5ac590de2ca5336d008820ba732
BLAKE2b-256 checksum
How to use checksums
7d627f75f43b85639cb3d09c3f1e4ddf61f1eea95c6690df3d44674861a0e387
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

0.1.3

2 release files

This release

0.1.2 This release

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