Skip to main content

tablib renderer (xlsx, xls, csv) for pyramid

Project description

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 =
    pyramid_tablib

Now in your view

@view_config(route_name='users+xlsx', renderer='xlsx')
def all_users(request):
    headers = ['Name', 'City', 'Email']
    data = [(user.name, user.city, user.email) for user in users]
    return {'data': data, 'headers': headers, 'title': 'Users'}

Project details


Download files

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

Source Distribution

pyramid_tablib-0.2.tar.gz (1.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page