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 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
Hashes for datasette-write-ui-0.0.1a7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f51e0c5e30fdc607eb6f02a68d7db695852ed184db5273f085c06f7bfc3afa71 |
|
MD5 | 7969e3d3dbf0cf587288bb1f23c534c3 |
|
BLAKE2b-256 | b4d617821892221972dc0df30ce2c526df0ae1481afb93f2f9b291ff00938eb2 |
Hashes for datasette_write_ui-0.0.1a7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15f78631cc0e64d57b00cebf4ba398a1741950ecfd860b400fcd86dd8c602491 |
|
MD5 | 26a93744e09d46efeb4f68c27981fdc4 |
|
BLAKE2b-256 | ebc18ffd9ea5694acb1cfd551fd50e2daf6337caf237b1913d5adafca1e80806 |