| Crates.io | tableau |
| lib.rs | tableau |
| version | 0.1.0 |
| created_at | 2025-01-28 17:47:45.623819+00 |
| updated_at | 2025-01-28 17:47:45.623819+00 |
| description | A library for creating pretty tables in the terminal |
| homepage | |
| repository | https://github.com/Hirevo/tableau |
| max_upload_size | |
| id | 1533812 |
| size | 58,380 |
This is a library for building pretty tables in the terminal.
This library is heavily inspired from the term-table library.
My goals with this library are:
All features marked as not yet implemented are ideas of things that could be done, and not necessarily an indication of it currently being worked on.
These are also non-exhaustive, so if there is a feature that you'd like to see done, feel free to open an issue to show your interest in it, regardless of whether it is mentionned in this list or not.
If you wish to contribute to this project, feel free to use this list to see if there is something you would be interested to either work on, or simply sharing some of your knowledge on how it could be achieved.
Here is an example output from the cities example:
╭─────────────────────────────────────────────────────╮
│ CITIES AROUND THE WORLD │
├─────────────┬────────────────┬───────────┬──────────┤
│ CITY │ COUNTRY │ LONGITUDE │ LATITUDE │
├─────────────┼────────────────┼───────────┼──────────┤
│ Tokyo │ Japan │ 139.6917 │ 35.6895 │
│ Jakarta │ Indonesia │ 106.8650 │ -6.1751 │
│ Delhi │ India │ 77.1025 │ 28.7041 │
│ Seoul │ South Korea │ 126.9780 │ 37.5665 │
│ Paris │ France │ 2.3522 │ 48.8566 │
│ London │ United Kingdom │ -0.1276 │ 51.5072 │
│ Beijing │ China │ 116.4074 │ 39.9042 │
│ New York │ United States │ -74.0060 │ 40.7128 │
│ Sao Paulo │ Brazil │ -46.6333 │ -23.5505 │
│ Mexico City │ Mexico │ -99.1332 │ 19.4326 │
│ Mumbai │ India │ 72.8777 │ 19.0760 │
│ Los Angeles │ United States │ -118.2437 │ 34.0522 │
│ Istanbul │ Turkey │ 28.9784 │ 41.0082 │
╰─────────────┴────────────────┴───────────┴──────────╯
You can see more examples of how to use this library by looking at the different examples available.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.