On the Python side we have
json_object = ["a", "b", "c"]
base64.b64encode(zlib.compress(bytes(json.dumps(json_object), "utf-8"))).decode("ascii")
On the JS side we have
let compressedData = Uint8Array.from(atob(input), (c) => c.charCodeAt(0));
let decompressedData = pako.inflate(compressedData, { to: "string" });
let jsonObject = JSON.parse(decompressedData);
cythonize -3 -a -i WebPageForm.py
Compiling /home/axion/projects/axion/factory.pages/WebPageForm.py because it changed..[1/1] Cythonizing /home/axion/projects/axion/factory.pages/WebPageForm.py
Updated : 2025-10-02