PrettyTable 0.7 Release Candidate 2

11 views
Skip to first unread message

Luke Maurits

unread,
Feb 9, 2013, 8:53:59 PM2/9/13
to prettyta...@googlegroups.com
Hi everyone,

I have tagged RC2 of 0.7:

http://code.google.com/p/prettytable/source/browse/#svn%2Ftags%2F0.7-RC2

This features a few small fixes and improvements to RC1. I also added
another new feature which I received a patch for some time ago but
forgot to integrate - a "from_html" function which can parse HTML code
and turn <table>s into PrettyTables. This means there are now 3 ways
to construct PrettyTable objects from existing data - CSV, HTML and SQL
databases. Hopefully this covers the majority of people's use cases.

The "from_html" function returns a list of PrettyTable objects, one per
<table> in the HTML string that is passed in. If you know for certain
that your HTML contains only one table, you can use the "from_html_one"
function, which will return just a PrettyTable object instead of a list
of length one (like "fetchone" for DB-API cursors). If you give
from_html_one a string containing multiple tables it will raise an
Exception.

I am waiting to hear back from some people involved in third party
projects which depend on PrettyTable to make sure there is no immediate
breakage, and once that happens I will release 0.7. Hopefully this
will happen in the next few days. So if you want to test RC2 in *your*
application before the release, please try to do so soon.

Cheers,
Luke
Reply all
Reply to author
Forward
0 new messages