Datasette plugin providing a UI for writing to a database
Project description
datasette-write
Datasette plugin providing a UI for writing to a database
Installation
Install this plugin in the same environment as Datasette.
$ pip install datasette-write
Usage
Having installed the plugin, visit /-/write
on your Datasette instance to submit SQL queries that will be executed against a write connection to the specified database.
By default only the root
user can access the page - so you'll need to run Datasette with the --root
option and click on the link shown in the terminal to sign in and access the page.
The datasette-write
permission governs access. You can use permission plugins such as datasette-permissions-sql to grant additional access to the write interface.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-write
python3 -mvenv venv
source venv/bin/activate
Or if you are using pipenv
:
pipenv shell
Now install the dependencies and tests:
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-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbd3c30c151433ae79c54d7546f414c4cc6663a84b8e1e8dacedae3c88ba7db9 |
|
MD5 | e138dc7e2892ce0671c7f5faf80092ac |
|
BLAKE2b-256 | 67b2960b062d512a0a6449b1e2fdbccee861dae317439afcaaa32fb5e707b46a |