Skip to main content

Crispy layout object for selecting rows in a table

Project description

Django Crispy TableSelect

CI codecov

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 and formatting

Ruff is configured. Run it with

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.2.0.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

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

django_crispy_tableselect-0.2.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for django_crispy_tableselect-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6ce36469e2b3ade46b45162b4163e8bb078af2839afc4b6f41638aa101e533fc
MD5 85b804c35730c54d36bc95a817366dbc
BLAKE2b-256 66175db84465de4cff17163156d4b613f28d22f90c043547fcd09d5df553a6ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_crispy_tableselect-0.2.0.tar.gz:

Publisher: publish.yml on Stormbase/django-crispy-tableselect

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for django_crispy_tableselect-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d0feda8c5760dd6ee6c6acbb7c1f0b4d8bdeaa029294de5594528f802863cd30
MD5 91303a42435255b17dd8fdbb1670ce6e
BLAKE2b-256 37c1223a6cb9aa5ef2410bb4d6fd2db6e0ded87f6dcc845f4b64aa9cb0d18298

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_crispy_tableselect-0.2.0-py3-none-any.whl:

Publisher: publish.yml on Stormbase/django-crispy-tableselect

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page