table_print

Crates.iotable_print
lib.rstable_print
version0.1.0
sourcesrc
created_at2021-04-07 09:27:59.484032
updated_at2021-04-07 09:27:59.484032
descriptionA table library for rust. It can export to plain text, HTML and CSV.
homepage
repositoryhttps://gitlab.com/john_t/tableprint
max_upload_size
id380293
size23,892
John Toohey (greenfierydragon)

documentation

README

TablePrint

License: LGPL v3

TablePrint is a small library designed so that you can easily create tables. Some of the notable features include:

  • Export to HTML
  • Export to CSV
  • Export to Plaintext with wrap.

You can easily create tables like this:

// Create a table with the headings of "Person", "History Grade" and "Geography Grade"
let table = Table::new(vec!["Person", "History Grade", "Geography Grade"]);

// Add Some Rows
table.add_row(vec!["John", "93", "92"]);
table.add_row(vec!["Anne", "98", "87"])

// Export to plaintext and print.
// 80 for 80 columns.
println!("Here are the grades: \n\n{}", table.get_pretty(80));
Commit count: 19

cargo fmt