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
Release history Release notifications | RSS feed
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)
File details
Details for the file pyramid_tablib-0.2.tar.gz
.
File metadata
- Download URL: pyramid_tablib-0.2.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fce44276bc06b444e27b0620403b7b0fc28ce7fd22a31df0056d372352362c9 |
|
MD5 | 9a9ce77cef1d1cb81513fc8fe9d3b3e2 |
|
BLAKE2b-256 | 00b1f72034873aa06c6a3986d8609c24ffccf813cde696fb026934acef2fc069 |