Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

datasette-write-ui

PyPI Changelog Tests License

A Datasette plugin that adds UI elements to edit, insert, or delete rows in SQLite tables.

Installation

This plugin requires the alpha version of Datasette 1.0. You can install it with:

pip install datasette==1.0a3

After that, you can install this plugin in the same environment as Datasette.

datasette install datasette-write-ui

Usage

Once installed, the new UI elements will appear on the table page. You'll need special permission in order to see them. The easiest way is to use the root user, or otherwise use a custom actor.

If you actor has the insert-row permissions, you'll see the "Insert new row" button at the bottom of the page.

If your actor has the update-row permissions, you'll see a new "Edit row" option in a new menu on each row.

If your actor has the delete-row permissions, you'll see a new "Delete row" option in a new menu on each row.

Development

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

cd datasette-write-ui
python3 -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To install the JavaScript build dependencies, run this:

npm install

You can use the Just command runner to build the TypeScript to minified JavaScript like this:

just js

To run the tests:

pytest

Metadata

Release files for datasette-write-ui 0.0.1a14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datasette-write-ui 0.0.1a14
File Size Uploaded
datasette_write_ui-0.0.1a14.tar.gz 16.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for datasette-write-ui 0.0.1a14
File Interpreter ABI Platform
datasette_write_ui-0.0.1a14-py3-none-any.whl Python 3 none any Details

Total release size: 33.9 kB

Release files / datasette_write_ui-0.0.1a14.tar.gz

Download URL datasette_write_ui-0.0.1a14.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1262640194248ddc28af6f00acb53bcd846ab670d84f4b1e6b9c8133f2e04563
BLAKE2b-256 checksum
How to use checksums
3e73755fedfd41836008bb3d6337d919a387453a0a38fb92925dad49b538b197
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / datasette_write_ui-0.0.1a14-py3-none-any.whl

Download URL datasette_write_ui-0.0.1a14-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa68b77d7690c024c117e8be2dda2cbd3e8e0852da90dab44c55a2b65ea96def
BLAKE2b-256 checksum
How to use checksums
76d75a81541009701ce990844186f48ed9a1202b0bef9e0b950c7c7c621b8950
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12
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