Skip to main content

Remove a database from Datasette

Project description

datasette-remove-database

PyPI Changelog Tests License

Remove a database from Datasette

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-remove-database

Usage

Users with the remove-database permission will see a new menu item on the database page that allows them to remove the database.

By default databases that are removed from Datasette will still be available on disk.

To also delete the file from disk, add this configuration:

plugins:
  datasette-remove-database:
    delete: true

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd datasette-remove-database
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

python -m 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_remove_database-0.1a2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

datasette_remove_database-0.1a2-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file datasette_remove_database-0.1a2.tar.gz.

File metadata

File hashes

Hashes for datasette_remove_database-0.1a2.tar.gz
Algorithm Hash digest
SHA256 926d1cce985253d5eee147081abbfa9ed0541e9c82140ef1ca40e3f370cfa0dd
MD5 27cb2cdf0e7c70c0ad448698103ba5a7
BLAKE2b-256 46fdddd8b1f64614a09456349ec5a30ef690b95ceff6bab13347196a7f7acba3

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_remove_database-0.1a2.tar.gz:

Publisher: publish.yml on datasette/datasette-remove-database

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file datasette_remove_database-0.1a2-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_remove_database-0.1a2-py3-none-any.whl
Algorithm Hash digest
SHA256 9f4a0fec533c8c5557d9349f0b65b4a06f39c0041da46597321928007fc44c83
MD5 8490f84993f71a3771fea4cf2bc0d93a
BLAKE2b-256 70fe9726680293e411dc9fb1031bb5f65e095ff5f041ff77d19fad523b3c47a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_remove_database-0.1a2-py3-none-any.whl:

Publisher: publish.yml on datasette/datasette-remove-database

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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