Skip to main content

Crispy layout object for selecting rows in a table

Project description

Django Crispy TableSelect

CI

Note: this package is under heavy development and currently in proof-of-concept phase.

Crispy layout object for selecting rows in a django-tables2 data table.

Animation showing a table with rows that are selected all at once and then unchecked one-by-one.

Todo list

  • Write documentation (d'oh)
  • Publish to PyPI
  • Add checkbox in table header to select/de-select all rows at once.
  • Add tests
  • Audit accessibility

Development setup

Requirements

  • At least python 3.9 (pyenv managed recommended)

Install the django app with poetry

pyenv virtualenv 3.9 django-tableselect  # or your alternative to create a venv
pyenv activate django-tableselect
pip install poetry
make install

# Optional, when you're not creating the virtualenv yourself poetry will do it for you.
# You can activate the poetry venv like so:
source $(poetry env info --path)/bin/activate

Linting

flake8-black and flake8-isort are installed and configured

make lint

Formatting

black and isort are configured

make format

Test

Pytest with coverage is default enabled

make test

Run the django development server (sandbox)

First run the migrations:

make migrate

Now create a superuser:

sandbox/manage.py createsuperuser

Finally run the django dev server:

sandbox/manage.py runserver

You can now go to the django admin site: http://localhost:8000/admin

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

django_crispy_tableselect-0.1.0.tar.gz (578.8 kB view details)

Uploaded Source

Built Distribution

django_crispy_tableselect-0.1.0-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file django_crispy_tableselect-0.1.0.tar.gz.

File metadata

File hashes

Hashes for django_crispy_tableselect-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dd3c4344f28f42cb6b6b73423023183f042688991d143d628a731f84133699e3
MD5 d0dff1e7a938b79b9bae267d88701261
BLAKE2b-256 a7d963687ec727158adf0bf8c3cf836ef8da3295ac39a46c2fc43f41c79e2f83

See more details on using hashes here.

File details

Details for the file django_crispy_tableselect-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_crispy_tableselect-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96745bcdde0a33f7769542cc486acfd27dc6ebee7b09e848c2f66dfb1c7dc4af
MD5 fa9e2fa450227dbb0891887689a406bb
BLAKE2b-256 d1855949abf537a5b7c0e1ce7f529dc5cbfd9e8e806b97f448e867959d3e1a52

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