tabulate_rs/lib.rs
1//! Pretty-print tabular data, ported from the [`python-tabulate`](https://github.com/astanin/python-tabulate)
2//! project.
3//!
4//! The crate exposes a single entry point – [`tabulate`] – similar to the original Python
5//! implementation. The API is intentionally builder-based to make configuration explicit while
6//! staying close to the reference behaviour.
7
8#![deny(missing_docs)]
9
10mod alignment;
11mod constants;
12mod format;
13mod options;
14mod table;
15mod width;
16
17pub use alignment::Alignment;
18pub use constants::SEPARATING_LINE;
19pub use format::{DataRow, Line, TableFormat, simple_separated_format, tabulate_formats};
20pub use options::{
21 FormatSpec, HeaderAlignment, Headers, MissingValues, RowAlignment, ShowIndex, TabulateOptions,
22};
23pub use table::{TabulateError, tabulate};