Skip to main content

Crate datui_lib

Crate datui_lib 

Source

Re-exports§

pub use cache::CacheManager;
pub use config::rgb_to_256_color;
pub use config::rgb_to_basic_ansi;
pub use config::AppConfig;
pub use config::ColorParser;
pub use config::ConfigManager;
pub use config::Theme;
pub use error_display::error_for_python;
pub use error_display::ErrorKindForPython;
pub use template::Template;
pub use template::TemplateManager;

Modules§

analysis_modal
cache
chart_data
Prepare chart data from LazyFrame: select x/y columns, collect, and convert to (f64, f64) points. All prepare_* and collect_* functions take a row_limit to cap materialized rows (default from config).
chart_export
Chart export to PNG (plotters bitmap) and EPS (minimal PostScript, no deps).
chart_export_modal
Chart export modal: format (PNG/EPS), optional chart title, and file path. Used from Chart view only.
chart_modal
Chart view state: chart type, axis columns, and options.
cli
Re-export CLI definitions from the shared datui-cli crate.
config
error_display
User-facing error message formatting.
export_modal
Export modal state and focus management.
filter_modal
pivot_melt_modal
Pivot / Melt modal state and focus.
sort_filter_modal
Combined Sort & Filter modal with tabs.
sort_modal
statistics
template
widgets

Structs§

App
Args
Command-line arguments for datui
ConfirmationModal
ErrorModal
ExportOptions
OpenOptions
SuccessModal

Enums§

AppEvent
CompressionFormat
Re-export compression format from CLI module Compression format for data files
InputMode
InputType
LoadingState
PendingDownload
Pending remote download; shown in confirmation modal before starting download.
QueryFocus
Focus within the query dialog: tab bar or input (SQL-Like only).
QueryTab
Query dialog tab: SQL-Like (current parser), Fuzzy, or SQL (future).
RunInput
Input for the shared run loop: open from file paths or from an existing LazyFrame (e.g. Python binding).

Constants§

APP_NAME
Application name used for cache directory and other app-specific paths

Functions§

run
Run the TUI with either file paths or an existing LazyFrame. Single event loop used by CLI and Python binding.