Built-in sandbox SHIM exposing Vis's Nippy persistence codec to Python.
nippy_decode(bytes) decodes trusted Vis-owned Nippy BLOBs (for example
session_turn_iteration.forms, session_turn_state.ctx, and
session_turn_state.error) into native Python data. Nippy-stream Vectorz
vectors decode as Python lists. nippy_encode(value) performs the inverse for
Python plain data. The same functions are available as nippy.decode /
nippy.encode after import nippy.
The Python module and Vectorz codec registration are lazy: neither runs during sandbox context initialization; Vectorz installs on the first codec call. Decoded Clojure values cross the normal sandbox boundary: map keys become canonical snake_case strings, keyword/symbol values become strings, dates become epoch milliseconds, and unsupported leaves stringify. This is for inspection and plain-data round trips, not exact Clojure type preservation. Java Serializable fallback is disabled in both directions.
Built-in sandbox SHIM exposing Vis's Nippy persistence codec to Python. `nippy_decode(bytes)` decodes trusted Vis-owned Nippy BLOBs (for example `session_turn_iteration.forms`, `session_turn_state.ctx`, and `session_turn_state.error`) into native Python data. Nippy-stream Vectorz vectors decode as Python lists. `nippy_encode(value)` performs the inverse for Python plain data. The same functions are available as `nippy.decode` / `nippy.encode` after `import nippy`. The Python module and Vectorz codec registration are lazy: neither runs during sandbox context initialization; Vectorz installs on the first codec call. Decoded Clojure values cross the normal sandbox boundary: map keys become canonical snake_case strings, keyword/symbol values become strings, dates become epoch milliseconds, and unsupported leaves stringify. This is for inspection and plain-data round trips, not exact Clojure type preservation. Java Serializable fallback is disabled in both directions.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |