Add interactive checkboxes to columns in Datasette
Project description
datasette-checkbox
Add interactive checkboxes to columns in Datasette. Requires Datasette 1.0 alpha or higher.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b7db2b3d47a826be839bfc3aee7cab44669e404a70f47f601df104476272721
|
|
| MD5 |
5238db9f9bca936649b2f0a1191666a3
|
|
| BLAKE2b-256 |
08e34ed24dc09083328f42ada15bf0f663c8ce69c6c52e4647c379918fb90b5c
|
Provenance
The following attestation bundles were made for datasette_checkbox-0.1a4.tar.gz:
Publisher:
publish.yml on datasette/datasette-checkbox
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datasette_checkbox-0.1a4.tar.gz -
Subject digest:
3b7db2b3d47a826be839bfc3aee7cab44669e404a70f47f601df104476272721 - Sigstore transparency entry: 676637729
- Sigstore integration time:
-
Permalink:
datasette/datasette-checkbox@6c20c317fb34da35405b7e01f668b62d9a42c6ec -
Branch / Tag:
refs/tags/0.1a4 - Owner: https://github.com/datasette
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6c20c317fb34da35405b7e01f668b62d9a42c6ec -
Trigger Event:
release
-
Statement type:
File details
Details for the file datasette_checkbox-0.1a4-py3-none-any.whl.
File metadata
- Download URL: datasette_checkbox-0.1a4-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca30f46e740522f97836f8a162204e7933190d6500a9a5fb0fda08923a67b1fb
|
|
| MD5 |
d12ea9283d735d6914ffafa24605cc5d
|
|
| BLAKE2b-256 |
3cf44e493c60d98090e0e1c5c49c36ef403eb41db348e20dadd17de31ffd8de6
|
Provenance
The following attestation bundles were made for datasette_checkbox-0.1a4-py3-none-any.whl:
Publisher:
publish.yml on datasette/datasette-checkbox
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datasette_checkbox-0.1a4-py3-none-any.whl -
Subject digest:
ca30f46e740522f97836f8a162204e7933190d6500a9a5fb0fda08923a67b1fb - Sigstore transparency entry: 676637733
- Sigstore integration time:
-
Permalink:
datasette/datasette-checkbox@6c20c317fb34da35405b7e01f668b62d9a42c6ec -
Branch / Tag:
refs/tags/0.1a4 - Owner: https://github.com/datasette
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6c20c317fb34da35405b7e01f668b62d9a42c6ec -
Trigger Event:
release
-
Statement type: