Skip to main content

Add interactive checkboxes to columns in Datasette

Project description

datasette-checkbox

PyPI Changelog Tests License

Add interactive checkboxes to columns in Datasette. Requires Datasette 1.0 alpha or higher.

Animated demo showing checkboxes in columns for is_done, should_be_deleted and is_happy - checking the checkboxes shows an updated message next to each one which then fades away.

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-checkbox

Usage

This plugin adds checkboxes to the table and row pages in Datasette for any column with a name that starts is_* or should_* or has_* and that is of type integer.

Toggling those checkboxes updates the underlying column to a 1 or a 0.

The checkbox interface will only be shown for users who have update-row permission for the table.

The easiest way to try this plugin is using the --root Datasette option:

datasette data.db --root

Or use the Datasette permission system to grant update-row to specific users.

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd datasette-checkbox
python3 -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

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

datasette_checkbox-0.1a4.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

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

datasette_checkbox-0.1a4-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file datasette_checkbox-0.1a4.tar.gz.

File metadata

  • Download URL: datasette_checkbox-0.1a4.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for datasette_checkbox-0.1a4.tar.gz
Algorithm Hash digest
SHA256 3b7db2b3d47a826be839bfc3aee7cab44669e404a70f47f601df104476272721
MD5 5238db9f9bca936649b2f0a1191666a3
BLAKE2b-256 08e34ed24dc09083328f42ada15bf0f663c8ce69c6c52e4647c379918fb90b5c

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_checkbox-0.1a4.tar.gz:

Publisher: publish.yml on datasette/datasette-checkbox

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

File details

Details for the file datasette_checkbox-0.1a4-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_checkbox-0.1a4-py3-none-any.whl
Algorithm Hash digest
SHA256 ca30f46e740522f97836f8a162204e7933190d6500a9a5fb0fda08923a67b1fb
MD5 d12ea9283d735d6914ffafa24605cc5d
BLAKE2b-256 3cf44e493c60d98090e0e1c5c49c36ef403eb41db348e20dadd17de31ffd8de6

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_checkbox-0.1a4-py3-none-any.whl:

Publisher: publish.yml on datasette/datasette-checkbox

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