Utility package to print visually appealing ASCII tables to terminal
Project description
Introduction
This Package provides BeautifulTable class for easily printing tabular data in a visually appealing ASCII format to a terminal.
Features include:
Full customization of the look and feel of the Table
Build the Table as you wish, By adding Rows, or by columns or even mixing both these approaches.
Links
Usage
Here is an example of how you can use beautifultable:
>>> from beautifultable import BeautifulTable >>> table = BeautifulTable() >>> table.column_headers = ["name", "rank", "gender"] >>> table.append_row(["Jacob", 1, "boy"]) >>> table.append_row(["Isabella", 1, "girl"]) >>> table.append_row(["Ethan", 2, "boy"]) >>> table.append_row(["Sophia", 2, "girl"]) >>> table.append_row(["Michael", 3, "boy"]) >>> print(table) +----------+------+--------+ | name | rank | gender | +----------+------+--------+ | Jacob | 1 | boy | +----------+------+--------+ | Isabella | 1 | girl | +----------+------+--------+ | Ethan | 2 | boy | +----------+------+--------+ | Sophia | 2 | girl | +----------+------+--------+ | Michael | 3 | boy | +----------+------+--------+
You can learn more about beautifultable at this Tutorial
Installation
pip install beautifultable
Contribute
If you have any suggestions or bug reports, Please create a Issue. Pull Requests are always welcome.
License
This project is licensed under the MIT License - see the LICENSE.txt file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file beautifultable-0.5.2.tar.gz.
File metadata
- Download URL: beautifultable-0.5.2.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53f99029c02ef482bd5fe4244e01a3639751194725aa43db0b511dc6910ed654
|
|
| MD5 |
4e8fc54348e7ab65d6caaf432899304a
|
|
| BLAKE2b-256 |
995874350cc244c4028f7e7c2e03ccc405ab86403a0888b135b94c9712d13204
|
File details
Details for the file beautifultable-0.5.2-py2.py3-none-any.whl.
File metadata
- Download URL: beautifultable-0.5.2-py2.py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d00456dcd47a4b022243a6ec463d90a4ce80dfd1af148ca7f698ee38780ceb5
|
|
| MD5 |
a7ca47367a8e8b45e08ba4349837c8c5
|
|
| BLAKE2b-256 |
90abbe823d97c60aefe967e1cc868618b37eae8ce5a04ba00e7eaceae6264667
|