xan filters, aggregates, joins, and visualizes CSV files from the shell, with a dedicated expression language for large files.
Overview
xan is a command-line tool for working with CSV and similar row-oriented data directly in the shell. It is implemented in Rust with a SIMD CSV parser and multithreading so very large files remain practical to process with modest memory use.
Commands chain for preview, search, filter, slice, sort, join, deduplication, frequency tables, statistics, grouping, pivoting, and parallel map-reduce style jobs. A built-in expression language handles filters and derived columns faster than embedding general-purpose scripting languages for typical tabular tasks.
Beyond comma-separated data, xan reads and writes several adjacent formats—including JSON, NDJSON, Excel, numpy arrays, bioinformatics and archival types—and can convert with from and to subcommands. Terminal views, histograms, scatter plots, heatmaps, and related ASCII visualizations help explore data without leaving the console.
Packages exist for Cargo, Homebrew, Scoop, pacman, Nix, Pixi, Conda Forge, and prebuilt binaries for common Linux, macOS, and Windows architectures. Shell completions are available via a dedicated command.
Key features
- Composable CSV pipeline commands
- SIMD parsing and parallel operations
- Dedicated CSV expression language
- Join, group, pivot, and window aggregates
- Terminal charts and heatmaps
- Multi-format import and export
- Lexicometry and network helpers
- Shell completion generation
Use cases
- Exploring large CSV logs in the terminal
- Ad hoc data cleaning without a database
- Social science and media research pipelines
- Quick statistical summaries of tabular files