Module prettytable
[hide private]
[frames] | no frames]

Module prettytable

source code


Version: 0.7.2

Classes [hide private]
  unicode
str(object='') -> string
  basestring
str(object='') -> string
  PrettyTable
  TableHandler
Functions [hide private]
 
_get_size(text) source code
 
_char_block_width(char) source code
 
_str_block_width(val) source code
 
from_csv(fp, field_names=None, **kwargs) source code
 
from_db_cursor(cursor, **kwargs) source code
 
from_html(html_code, **kwargs)
Generates a list of PrettyTables from a string of HTML code.
source code
 
from_html_one(html_code, **kwargs)
Generates a PrettyTables from a string of HTML code which contains only a single <table>
source code
 
main() source code
Variables [hide private]
  py3k = False
  FRAME = 0
  ALL = 1
  NONE = 2
  HEADER = 3
  DEFAULT = 10
  MSWORD_FRIENDLY = 11
  PLAIN_COLUMNS = 12
  RANDOM = 20
  _re = re.compile(r'\x1b\[[0-9;]*m')
  __package__ = None
Function Details [hide private]

from_html(html_code, **kwargs)

source code 

Generates a list of PrettyTables from a string of HTML code. Each <table> in the HTML becomes one PrettyTable object.