skip to navigation
skip to content

pyramid_tablib 0.2

tablib renderer (xlsx, xls, csv) for pyramid

This package which provides custom renderer factory(xlsx, xls, csv) for Pyramid.

Getting Started

Include pyramid_tablib either by setting your includes in your .ini, or by calling config.include(‘pyramid_tablib’).

pyramid.includes =

Now in your view

@view_config(route_name='users+xlsx', renderer='xlsx')
def all_users(request):
    headers = ['Name', 'City', 'Email']
    data = [(,, for user in users]
    return {'data': data, 'headers': headers, 'title': 'Users'}
File Type Py Version Uploaded on Size
pyramid_tablib-0.2.tar.gz (md5) Source 2015-03-12 1KB