No project description provided
Project description
datasette-write-ui
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
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
File details
Details for the file datasette_write_ui-0.0.1a11.tar.gz
.
File metadata
- Download URL: datasette_write_ui-0.0.1a11.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51fbf1566bdc192f85ab1663b97fbeacffc7cc7d845013186bb48f62b3c94e8c |
|
MD5 | 9eb0d5d8deb2dee279424f3f8d4b2070 |
|
BLAKE2b-256 | 9f9b760a8df871da68e51e43104ead6e7d84c6d37ea4a993911bf30e2eceb9c9 |
File details
Details for the file datasette_write_ui-0.0.1a11-py3-none-any.whl
.
File metadata
- Download URL: datasette_write_ui-0.0.1a11-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cf97c3b4a3546c0c230a80c435ce5da11b3fc5563eaa3fc676d028230d9ba17 |
|
MD5 | 3fbcea51d6c7adeebe5244ce9642f13a |
|
BLAKE2b-256 | f6873d5d77d8dc8f55edee309d3f3bf115f8a4193c05022d56cff9e362ff3744 |