Skip to content

Integrate Kenneth Reitz's tablib with Plomino formulas

Notifications You must be signed in to change notification settings

plomino/plomino.tablib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Make Kenneth Reitz's tablib available to PlominoUtils.

Include plomino.tablib in the eggs section of your buildout:

eggs =
    ...
    plomino.tablib

When this package is present, the dataset function is available to Plomino formulas.

Examples:

# 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

See tablib for more.

About

Integrate Kenneth Reitz's tablib with Plomino formulas

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%