Skip to main content

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'}

Metadata

Release files for pyramid_tablib 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyramid_tablib 0.2
File Size Uploaded
pyramid_tablib-0.2.tar.gz 1.8 kB Details

Release files / pyramid_tablib-0.2.tar.gz

Download URL pyramid_tablib-0.2.tar.gz
Size 1.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7fce44276bc06b444e27b0620403b7b0fc28ce7fd22a31df0056d372352362c9
BLAKE2b-256 checksum
How to use checksums
00b1f72034873aa06c6a3986d8609c24ffccf813cde696fb026934acef2fc069
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page