将Kenneth Reitz的Tablib提供给Plominoutils。
plomino.tablib的Python项目详细描述
Introduction
把肯尼斯·雷茨的tablib提供给普罗米诺斯。
Installation
在构建的eggs部分中包含plomino.tablib:
eggs = ... plomino.tablib
当这个包存在时,dataset函数可用于plomino公式。
示例:
# Create a table from a list of lists: mytable = dataset([[1,2], [3,4]]) # Create a table and specify headers: mytable = dataset([[1,2], [3,4]], headers=['col1', 'col2']) # Create a table from a list of dicts (sets headers): mytable = dataset([{'col1': 1, 'col2': 2]}, {'col1': 3, 'col2': 4}]) # Get the table as CSV or JSON: mytable.csv mytable.json # Get the table as HTML or Excel: mytable.html mytable.xls
有关详细信息,请参见tablib。
Contributors
- 让·乔丹