Datasette plugin for modifying table schemas
Project description
datasette-edit-schema
Datasette plugin for modifying table schemas
Features
- Add new columns to a table
- Rename columns in a table
- Modify the type of columns in a table
- Re-order the columns in a table
- Rename a table
- Delete a table
Installation
Install this plugin in the same environment as Datasette.
$ pip install datasette-edit-schema
Usage
Navigate to /-/edit-schema/dbname/tablename
on your Datasette instance to edit a specific table.
Use /-/edit-schema/dbname
to create a new table in a specific database.
By default only the root actor 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 edit-schema
permission governs access. You can use permission plugins such as datasette-permissions-sql to grant additional access to the write interface.
Screenshot
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-edit-schema
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-edit-schema-0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 968ad711bdf9afb0b1942ed301655a96bbf95a852780a1eb36e73dc9230fd014 |
|
MD5 | bd22101c4624abb90e0fff9493573bda |
|
BLAKE2b-256 | 7405d44d72a51f044dfddcf99a33c79216b17aa8a9027521f63e1cb96f1e8f27 |
Hashes for datasette_edit_schema-0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b1ec34c8cf8268c33c6b558f5983f4dbcd7ae517c1c7db700806f0d6735288a |
|
MD5 | 6009f0cad63050a06939f4a5e69e346f |
|
BLAKE2b-256 | 7f44a9920cfb39c6be5df9c8150ad6c1bec1b028b6e2eeef4888c79acf78c601 |