degenbot.utils.solady¶

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¶

degenbot.utils.solady.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.

degenbot.utils.solady.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.