beautifultable is a Python library for printing beautiful, structured text tables in terminals, making CLI output more readable. Its current stable version is 1.1.0, released in January 2020. The project appears stable and feature-complete but has not seen active development or new releases since 2020, so its release cadence is infrequent.
pip install beautifultableVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to create a BeautifulTable, set column headers, add rows, and customize column alignment. The output is a formatted string ready for terminal display.
Refer to the 1.x documentation/README for the new API. Common changes include using `table.columns.<attr>` for column-specific settings and `table.rows.<attr>` for row-specific settings.
Assess if the current feature set meets your needs. For projects requiring active development, consider alternatives if `beautifultable`'s current state is insufficient.
Ensure data types are consistent within columns or convert them to strings before adding to the table. Use `table.columns.precision` for numbers and `table.columns.wrap_text` for long strings. Experiment with `table.max_width` and `table.columns.width` to control column layout.
The `append_row` method was replaced. Use `table.rows.append(data_list)` instead for `beautifultable` versions 1.0.0 and later.
Add `from beautifultable import BeautifulTable` at the top of your Python file or before using the class.
For the maximum table width, use `table.max_width = <integer>`. For individual column widths, use `table.columns.width = {column_name: width}` or `table.columns.width[column_name] = width`.No dependency data recorded yet.