Prettytable

Latest version: v3.16.0

Safety actively analyzes 723177 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

0.3

- Added `padding_width` option to control the number of spaces between the vertical line
rules at the edges of a column and its content. This can be set as a keyword argument
to the constructor or after instantiation using the `set_padding_width` method. The
value is set to `1` by default. If your table is too wide for a small screen with this
value, setting it to `0` might help you squeeze it in.

Thanks to Chris Clark for contributing a patch against 0.2.1 to add this feature!

0.2.1

- Caching no longer breaks when using the `printt(fields=[...])` syntax. The list of
fields was not hashable and hence could not be used as a dictionary key. I fixed this
using the output of the `cPickle` module's `dumps` function as the dictionary key
instead.
- Horizontal lines are now the appropriate length when the above syntax is used.

Thanks to Julien Koesten for reporting these bugs and testing the fixes almost

0.2

- Added `get_string` method.
- Added `__str__` method (which just calls `get_string`) to enable nice `print x`
syntax.
- Can now pass field names as a constructor argument.
- Return values of `get_string` are cached in a dictionary that is only cleared after a
call to `add_row` or something else which invalidates the cache.

0.1

- Original release

Page 2 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.