Skip to main content

webhelpers2_grid

HTML Grid renderer that helps generating HTML tables (or other structures) for data presentation, supports ordering, sorting columns, and is very customizable

DOCUMENTATION: https://webhelpers-grid2.readthedocs.io

DEMOS: http://ergo.github.io/webhelpers_grid2/gh-pages/ (static page)

BUG TRACKER: https://github.com/ergo/webhelpers_grid2/issues

Example Usage::

test_data = [
             {"group_name": "foo", "options": "lalala", "id":1},
             {"group_name": "foo2", "options": "lalala2", "id":2},
             {"group_name": "foo3", "options": "lalala3", "id":3},
             {"group_name": "foo4", "options": "lalala4", "id":4},
             ]

def options_td(col_num, i, item):
    u = url("/tickets/view", ticket_id=item["id"])
    a = link_to(item["options"], u)
    return HTML.td(a)

g = Grid(test_data, columns=["_numbered", "group_name", "options"])
g.labels["options"] = 'FOOBAAR'
g.column_formats["options"] = options_td
str(g)

webhelpers2_grid is BSD Licensed

Release files for webhelpers2_grid 0.9

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

Source distribution (sdist)

Source distribution for webhelpers2_grid 0.9
File Size Uploaded
webhelpers2_grid-0.9.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for webhelpers2_grid 0.9
File Interpreter ABI Platform
webhelpers2_grid-0.9-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / webhelpers2_grid-0.9.tar.gz

Download URL webhelpers2_grid-0.9.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
77cf6731e6f5d3fba434c5f60a7474e1a16326c0abd162c495eb046d9503cb08
BLAKE2b-256 checksum
How to use checksums
cd2acdabf3e3676ee03e6d85f20b6c294a01f35f52ccee193252f7c3e360e459
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

Release files / webhelpers2_grid-0.9-py3-none-any.whl

Download URL webhelpers2_grid-0.9-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c1ba1c5c4708c9ee46adca5936c696008113cd2303bf38577068bfe72883850
BLAKE2b-256 checksum
How to use checksums
c64daedaff394077f52efcf936e0b7a6d6176bee232b8711e9707e1488e16a09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

Release history Release notifications | RSS feed

This release

0.9 This release

2 release files

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