Skip to content

CLI to SDK Mapping

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

CLI CommandPython SDKRust SDKNotes
scandetect_available_sources()detect_available_sources()Full parity
benchbenchmark_sources()benchmark_sources()Full parity
analyzefull_analysis(), chaos_analysis(), analyze()full_analysis(), chaos_analysis(), analyze()Full parity — dispatcher analyze() mirrors all CLI analysis flags
recordSessionWriter, record()SessionWriterFull parity
monitorCLI-only (TUI) — intentional
streamget_random_bytes()Full parity
comparecompare()Full parity
sessionslist_sessions(), load_session_meta(), load_session_raw_data()list_sessions(), load_session_raw_data()Full parity
analyze --chaoschaos_analysis()chaos::chaos_analysis()Full parity
dispatcher analyze()analyze(), analysis_config()dispatcher::analyze()Unified dispatch with profiles — full parity
serverHTTP 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