yuzutech / kroki.io

kroki.io website

Home Page:https://kroki.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Explain how to decompress using Python (one-liner)

ggrossetie opened this issue · comments

$ echo "eNpLyUwvSizIUHBXqPZIzcnJ17ULzy_KSanlAgB1EAjQ" | python -c "import sys; import base64; import zlib; print(zlib.decompress(base64.urlsafe_b64decode(sys.stdin.read())))"
digraph G {Hello->World}

This command might be useful to troubleshoot (and proves that the diagram definition can be retrieved from the encoded data).