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 details)

Uploaded Source

File details

Details for the file pyramid_tablib-0.2.tar.gz.

File metadata

File hashes

Hashes for pyramid_tablib-0.2.tar.gz
Algorithm Hash digest
SHA256 7fce44276bc06b444e27b0620403b7b0fc28ce7fd22a31df0056d372352362c9
MD5 9a9ce77cef1d1cb81513fc8fe9d3b3e2
BLAKE2b-256 00b1f72034873aa06c6a3986d8609c24ffccf813cde696fb026934acef2fc069

See more details on using hashes here.

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