Skip to main content

Make Tablib by Kenneth Reitz available to PlominoUtils.

Project description

Introduction

Make Kenneth Reitz’s tablib available to PlominoUtils.

Installation

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.

Contributors

  • Jean Jordaan

Changelog

1.1 (2014-07-28)

  • Fix packaging [Jean Jordaan]

1.0 (2013-01-24)

  • Package created using templer [Jean Jordaan]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
plomino.tablib-1.1.zip (14.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page