Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Integrate Kenneth Reitz's tablib with Plomino formulas

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 docs
Octocat-spinner-32 plomino
Octocat-spinner-32 .gitignore
Octocat-spinner-32 CHANGES.txt
Octocat-spinner-32 CONTRIBUTORS.txt
Octocat-spinner-32 README.rst
Octocat-spinner-32 setup.py
README.rst

Introduction

Make Kenneth Reitz's tablib available to PlominoUtils.

Installation

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

eggs =
    ...
    plomino.tablib

The package has not yet been released to PyPI, so you'll need to check out the egg from github.

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.

Something went wrong with that request. Please try again.