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.1a5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84681740cc4493f889bfbb82722c2167a0b8ae45963f2d61d9749d71f0318802 |
|
MD5 | d3bd9a09f37f7bb54c2753227ef2e9ce |
|
BLAKE2b-256 | 3e05b90f50aec99b188cf3b3554994f7bbe98f85e3a0d537dff4b3189b86c26e |
Hashes for datasette_write_ui-0.0.1a5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bc787971885b3099ec755f548e64e18fad4f9a3f36bfa5601e5d8cb7721bf15 |
|
MD5 | 4c364b044ae66718126ccc1997177c20 |
|
BLAKE2b-256 | e4f30e8bb57a1d2985cfc49c1024cc05b50c7c9fdbee58ef863546c20a803817 |