degenbot.utils.solady ===================== .. py:module:: degenbot.utils.solady .. autoapi-nested-parse:: Solady LibZip: flz compress/decompress for bytecode. Thin delegation shim over the Rust ``degenbot-core`` core, exposed via the ``degenbot._ffi.solady`` extension module (Rust cdylib crate ``degenbot_rs``). The pure-Python implementation has been retired (per ADR-005 sub-step C, the ยง3.3 transition rubric in the three-layer-transition guide, removed in the stale-docs cleanup `71ec78b2`); the Rust core (``rust/crates/foundation/degenbot-core/src/libzip.rs``) is the single implementation, ``#[cfg(test)]`` corpus the regression set. Package Contents ---------------- .. py:function:: flz_compress(uncompressed_data: str | bytes) -> bytes Compress data using Solady's FastLZ algorithm. ref: https://github.com/Vectorized/solady/blob/main/js/solady.js Accepts a hex string (with optional ``0x`` prefix) or ``bytes``. :returns: The compressed data. .. py:function:: flz_decompress(compressed_data: bytes | bytearray | degenbot.types.chain.HexStr) -> bytes Decompress data using Solady's FastLZ algorithm. ref: https://github.com/Vectorized/solady/blob/main/js/solady.js Accepts a hex string (with optional ``0x`` prefix), ``bytes``, ``bytearray``, or a hex string. :returns: The decompressed data.