PyHtmlTable is a class for Python CGIs to generate HTML tables on the fly. It allows you to set individual row and cell attributes via arbitrary dictionaries, and span rows and columns. It autogrows the table if cells are set outside its initial range. It allows dynamic insertion of new rows and columns anywhere in the table, and allows bulk population of table data via arrays to arbitrary locations in the table. It also provides default cell attributes for tablewide uniformity and the ability to override these on a cell-by-cell basis. PyHtmlTable is intended to be a functional equivalent to Table.pm or Table.php.
| Tags | Internet Web Dynamic Content CGI Tools/Libraries Text Processing Markup HTML/XHTML |
|---|---|
| Licenses | Freeware |
| Operating Systems | OS Independent |
| Implementation | Python |
Recent releases


Changes: A minor requested change was made: when only colspan and or rowspan is set, the cell being generated now acquires the default cell attributes.


Changes: This release has shorthand to make less verbose method calls. All method calls have both long names and short ones to preserve backward compatibility with older versions. Tarball packaging has been changed to be more directory/version friendly. There are a few other minor fixes.


Changes: Better handling of null table inserts.


Changes: Minor enhancements and some minor bugfixes were made. Shortcuts were added to method names, and more graceful handling of Null inserts into the table was added.


Changes: A fix for a slight logic error with setCellColspan.