PrettyTable 0.5 released

4 views
Skip to first unread message

Luke Maurits

unread,
May 26, 2009, 3:47:23 AM5/26/09
to prettytable-announce
I am pleased to announce the release of PrettyTable 0.5 today, after
integrating feedback received from users who tested the release
candidate made available last week. If you're interested in helping
to test future release candidates, be sure to subscribe to the
prettytable-devel group!

PrettyTable 0.5 is available to download from the "Downloads" tab of
the project home page and, as always, is available at PyPI for use
with the "easy_install" tool. You can use "easy_install -U
prettytable" to upgrade your current 0.4 installation to 0.5 if you
like.

Changes from 0.4 to 0.5 include:

* Fixed a bug whereby printing with headers=False and border=False
would introduce an extraneous newline. Thanks to Alexander Lamaison
for reporting this bug.
* When printing with headers=False, column widths will now be reduced
as appropriate in columns where the field name is wider than the
data. Thanks to Alexander Lamaison for suggesting this behaviour.
* Support for Unicode has improved. Thanks to Chris Clark for
submitting this improvement.
* The value of the "border" argument now correctly controls the
presence of a border when printing HTML tables with print_html or
get_html_string, instead of being incorrectly ignored. Thanks to
Chris Clark for fixing this.
* The print_html and get_html_string methods now accept an
"attributes" argument which is a dictionary of name/value pairs to be
placed inside the <table> tag (so you can, e.g. set class, name or id
values in order to style your table with CSS). Thanks to Chris Clark
for submitting this feature.
* The print_html and get_html_string methods now, by default, do their
best to match the various formatting options in their HTML output.
They use inline CSS to adjust the alignment of data in columns, the
padding widths of columns and in some cases the border settings. You
can give either method a "format=False" attribute to turn this
behaviour off if you want to do your own styling. With "format=False"
the methods print a "bare bones" table, similar to the default
behaviour in 0.4.

Thanks to everybody who helped out in the lead up to 0.5!

Development will now commence on PrettyTable 0.6. This will be a
"tidy up" release, with no new features added but many changes made to
the PrettyTable API to make it simpler, more consistent and more
Pythonic. You can follow the progress of 0.6 by subscribing to
prettytable-devel.

Happy hacking!
Luke
Reply all
Reply to author
Forward
0 new messages