Skip to main content

django-tableaux

Django tables with Advanced User eXperience

Almost every Django project has a need to display data in tabular form. Creating a simple table is relatively easy, but if your data is complex with many columns you owe it to your users to present the data in a format that suits them. Different users may want to view different combinations of columns, be using very different devices and maywant to interactively work with the table in different ways. Simple html tables don't meet those requirements well. That's where this package comes in.

Django-tableaux builds upon two well-established django apps: django_tables2 and django_filter and enhances their functionality through a sprinkling of htmx magic. It provides a single class-based docs/source/TableauxView.md in which you can enable multiple features to deliver a customised user experience that embodies the best practices for interactive tables.

Key features

  • User-definable columns selection with frozen columns and preset widths
  • Fully responsive: Define different table layouts for mobile, tablet and desktop
  • Perform bulk actions on selected rows or on all (possibly filtered) rows
  • User-definable rows per page with options for infinite scroll and infinite load-more data
  • Display filters in a toolbar, in a modal or embed them within the table header
  • Show active filter pils with ability to clear individual filters
  • Edit specific fields directly inside the table
  • Easy integration with generic views for CRUD operations
  • Configurable toolbars above and below the table data

See docs/source/introduction.md for a more detailed walkthrough of these features.

Installation

uv add django-tableaux

or

pip install django-tableaux

Dependencies

At a minimum django-tableaux requires django_tables2, django_filter and htmx to operate. If not already loaded installing django-tableaux will also install suitable versions of those packages. If you are using bootstrap and employing filtering, django-tableaux's standard templates use the https://github.com/zostera/django-bootstrap5 package to display the filter form's fields. This package is not automatically installed; you must install it separately if needed.

Templates and CSS

Django-tableaux splits table generation into a hierarchy of templates. To properly present tables a minimum amount of CSS is required. We provide a native CSS file that defines the minimum to make tables look good, and include CSS variables that you can set to tailor the colours and presentation. We also supply ready-built templates adapted for Bootstrap that work for both version 4 and version 5.

Internally, templates are organised in a template dictionary. This dictionary is loaded with a mixture of basic templates, bootstrap-specific templates if required, and optionally user-specific templates.

See docs/source/templates.md for details on the template dictionary and how to override templates.

Documentation

Full documentation is in docs/source:

  • Introduction — overview of the features django-tableaux provides
  • TableauxView — the main class-based view
  • Views — view configuration
  • Columns — defining and customising columns
  • Attributes — view and column attributes reference
  • Settings — project-wide settings
  • Templates — the template dictionary and overriding templates
  • Toolbar — toolbar and filter placement

Download files

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

Source Distribution

django_tableaux-0.8.3.tar.gz (41.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_tableaux-0.8.3-py3-none-any.whl (74.4 kB view details)

Uploaded Python 3

File details

Details for the file django_tableaux-0.8.3.tar.gz.

File metadata

  • Download URL: django_tableaux-0.8.3.tar.gz
  • Upload date:
  • Size: 41.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for django_tableaux-0.8.3.tar.gz
Algorithm Hash digest
SHA256 fc82ff6da07dc498f10531a89724f0e731e48d03cfda4da6ceb83de00fa652c2
MD5 c6c267d9eaff073b30fb955b2bcb1576
BLAKE2b-256 d693adfa52feed2a5d36392bf709ac0b4d7bc9796ed4d5d4a5b1bc5e9d57ad68

See more details on using hashes here.

File details

Details for the file django_tableaux-0.8.3-py3-none-any.whl.

File metadata

  • Download URL: django_tableaux-0.8.3-py3-none-any.whl
  • Upload date:
  • Size: 74.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for django_tableaux-0.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 634713da218378d01d27a0ba9570b39b4f16e9668c7e04fa240946ad925d1c9c
MD5 3c47ee56c5302020ad6cd8345f900a56
BLAKE2b-256 97aee5eaaaeb624f26fe05f9cdbc6a8be2d7d488aa4eabe58ecd85fd37789232

See more details on using hashes here.

Release history Release notifications | RSS feed

0.8.4

2 files

This release

0.8.3 This release

2 files

0.8.2

2 files

0.8.1

2 files

0.8.0

2 files

0.7.6

2 files

0.7.5

2 files

0.7.4

2 files

0.7.3

2 files

0.7.2

2 files

0.7.1

2 files

0.7.0

2 files

0.6.11

2 files

0.6.10

2 files

0.6.9

2 files

0.6.8

2 files

0.6.7

2 files

0.6.6

2 files

0.6.5

2 files

0.6.4

2 files

0.6.3

2 files

0.6.2

2 files

0.6.1

2 files

0.6

2 files

0.5

2 files

0.4

2 files

0.3

2 files

0.2

2 files

0.1

2 files

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