No project description provided
Project description
datasette-metadata-editable
A Datasette plugin for editing instance, database and table metadata. Currently requires Datasette 1.0a14 or higher.
Installation
Install this plugin in the same environment as Datasette.
datasette install datasette-metadata-editable
Usage
This plugin must be used with a persistent internal.db
database. If you don't configure Datasette in this way any changes made to metadata will be lost when the server restarts.
Be sure to start Datasette something like this:
datasette --internal internal.db
Users with the datasette-metadata-editable-edit
permission will see action menu items for editing the metadata attached to the instance, a database or a table.
An easy way to test the plugin is like this, which will allow even logged out users to edit metadata:
datasette --internal internal.db -s permissions.datasette-metadata-editable-edit true
Or to restrict edits to the root
user:
datasette --internal internal.db -s permissions.datasette-metadata-editable-edit.id root --root
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-metadata-editable
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
File details
Details for the file datasette_metadata_editable-0.2a0.tar.gz
.
File metadata
- Download URL: datasette_metadata_editable-0.2a0.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac313bde73f28a91ad58c3a99ae86e18f3c2397a3d37b33fed9eb84f0844b167 |
|
MD5 | f7ef8edeacec815fe9d68c8b5dae0e91 |
|
BLAKE2b-256 | 708cadabb998ee917e1576a0286ed9d965a927a2a2e96c70be24db009f991a9d |
File details
Details for the file datasette_metadata_editable-0.2a0-py3-none-any.whl
.
File metadata
- Download URL: datasette_metadata_editable-0.2a0-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70d57cf1615f98efefb73ad7e21e8c6071abf1c5c84a881d3b8bb2e3b6377309 |
|
MD5 | e5fcc315c76c971a767d21a153be4d1d |
|
BLAKE2b-256 | 9e69283bef99cf204cc47df4770d45ddf6c4eed63ce417bfa0fccc65d288b1c5 |