[ANN] PyHtmlTable: New Python CGI table generating utility

Fightplatetectonics fightplatetectonics at yahoo.com
Fri Jul 25 11:26:12 EDT 2003


What: 
  
     Html Table generation on the fly. 
  
Why: 
     Couldn't find a python equivalent to Table.pm or Table.php 
  
If you're using python cgi's to generate tables, it might be worth a look. 
 
Ultra simple example: 
 
        t  = PyHtmlTable( 1, 2, {'width':'400','border':2,'bgcolor':'white'}) 
 
        t.setc( 0, 0, "First cell", {'bgcolor':'red'} ) 
        t.setc( 0, 1, "2nd cell" ) 
        t.display() 
 
Voila, you've got a table, but wait there's more....(The bamboo wok is 
coming soon) 
 
More Features: 
 
  Autogrows table if cells set outside initial range. 
 
  Allows dynamic insertion of new rows and columns anywhere in the table 
 
  Allows setting of individual row and cell attributes via arbitrary 
  dictionaries 
  
  Allows spanning of rows and columns 
  
  Allows bulk population of table data via arrays to arbitrary locations 
  in the table. 
  
  Provides default cell attributes for tablewide uniformity 
  and the ability to override these on a cell by cell basis. 
 
It's fun, it's free, it's on freshmeat: 
 
        http://freshmeat.net/projects/pyhtmltable/ 


Cheers,

fptt.




More information about the Python-list mailing list