Skip to content

CLI to SDK Mapping

This page documents which CLI commands have SDK equivalents in Python and Rust.

CLI CommandPython SDKRust SDKNotes
scan✅ detect_available_sources()✅ detect_available_sources()Full parity
bench✅ benchmark_sources()✅ benchmark_sources()Full parity
analyze✅ full_analysis(), chaos_analysis(), analyze()✅ full_analysis(), chaos_analysis(), analyze()Full parity — dispatcher analyze() mirrors all CLI analysis flags
record✅ SessionWriter, record()✅ SessionWriterSession recording parity; Python record() uses the same bounded-duration sweep model as CLI
monitor❌❌CLI-only (TUI) — intentional
stream✅ get_random_bytes()✅Full parity
compare✅ compare()✅Full parity
sessions✅ list_sessions(), load_session_meta(), load_session_raw_data()✅ list_sessions(), load_session_raw_data()Full parity
analyze --chaos✅ chaos_analysis()✅ chaos::chaos_analysis()Full parity
dispatcher analyze()✅ analyze(), analysis_config()✅ dispatcher::analyze()Unified dispatch with profiles — full parity
server❌✅HTTP server is Rust-only — intentional

TUI dashboard. Cannot be embedded in Python/Rust apps.

  • Use case: Real-time visualization of entropy pool health
  • Alternative: Use pool.health_report() in a loop for custom monitoring

HTTP entropy server — Rust-only, no Python bindings.

  • Use case: Serve entropy over HTTP API
  • Why not Python: Would require async runtime (tokio) in PyO3