Skip to main content

No project description provided

Project description

datasette-metadata-editable

PyPI Changelog Tests License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datasette_metadata_editable-0.2a2.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datasette_metadata_editable-0.2a2-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file datasette_metadata_editable-0.2a2.tar.gz.

File metadata

File hashes

Hashes for datasette_metadata_editable-0.2a2.tar.gz
Algorithm Hash digest
SHA256 90b35185a06633e4bdfdca709cae762cb0267dfd4b0357c12ea4d2e0bf6603c8
MD5 c8c1279e60b8709645822d7a4ebc4af1
BLAKE2b-256 6cf30e31d75d2d4216bbe2a17f34f7cd300ae5ae888c99d7f3a19799bb6ef9f2

See more details on using hashes here.

File details

Details for the file datasette_metadata_editable-0.2a2-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_metadata_editable-0.2a2-py3-none-any.whl
Algorithm Hash digest
SHA256 d06d0e5ae9cda871437c1d6d9f14e411f346f166376d0820a06e47745eb5757e
MD5 0949232c50091d4b6a8c50a2d1f0750f
BLAKE2b-256 a5b15a77b35231b4e052d03f8f56886b6a16cb7a9c2fd56a4dde514fdf938fab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page