datasette-remove-database


Namedatasette-remove-database JSON
Version 0.1a0 PyPI version JSON
download
home_pageNone
SummaryRemove a database from Datasette
upload_time2025-02-12 18:35:01
maintainerNone
docs_urlNone
authorSimon Willison
requires_python>=3.9
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # datasette-remove-database

[![PyPI](https://img.shields.io/pypi/v/datasette-remove-database.svg)](https://pypi.org/project/datasette-remove-database/)
[![Changelog](https://img.shields.io/github/v/release/datasette/datasette-remove-database?include_prereleases&label=changelog)](https://github.com/datasette/datasette-remove-database/releases)
[![Tests](https://github.com/datasette/datasette-remove-database/actions/workflows/test.yml/badge.svg)](https://github.com/datasette/datasette-remove-database/actions/workflows/test.yml)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/datasette/datasette-remove-database/blob/main/LICENSE)

Remove a database from Datasette

## Installation

Install this plugin in the same environment as Datasette.
```bash
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:
```yaml
plugins:
  datasette-remove-database:
    delete: true
```

## Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:
```bash
cd datasette-remove-database
python -m venv venv
source venv/bin/activate
```
Now install the dependencies and test dependencies:
```bash
pip install -e '.[test]'
```
To run the tests:
```bash
python -m pytest
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "datasette-remove-database",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "Simon Willison",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/c5/5d/2dcea28586463cca1d405bf864a27b31c2e9dbe3a3902970735e8e9633f0/datasette_remove_database-0.1a0.tar.gz",
    "platform": null,
    "description": "# datasette-remove-database\n\n[![PyPI](https://img.shields.io/pypi/v/datasette-remove-database.svg)](https://pypi.org/project/datasette-remove-database/)\n[![Changelog](https://img.shields.io/github/v/release/datasette/datasette-remove-database?include_prereleases&label=changelog)](https://github.com/datasette/datasette-remove-database/releases)\n[![Tests](https://github.com/datasette/datasette-remove-database/actions/workflows/test.yml/badge.svg)](https://github.com/datasette/datasette-remove-database/actions/workflows/test.yml)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/datasette/datasette-remove-database/blob/main/LICENSE)\n\nRemove a database from Datasette\n\n## Installation\n\nInstall this plugin in the same environment as Datasette.\n```bash\ndatasette install datasette-remove-database\n```\n## Usage\n\nUsers with the `remove-database` permission will see a new menu item on the database page that allows them to remove the database.\n\nBy default databases that are removed from Datasette will still be available on disk.\n\nTo also delete the file from disk, add this configuration:\n```yaml\nplugins:\n  datasette-remove-database:\n    delete: true\n```\n\n## Development\n\nTo set up this plugin locally, first checkout the code. Then create a new virtual environment:\n```bash\ncd datasette-remove-database\npython -m venv venv\nsource venv/bin/activate\n```\nNow install the dependencies and test dependencies:\n```bash\npip install -e '.[test]'\n```\nTo run the tests:\n```bash\npython -m pytest\n```\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Remove a database from Datasette",
    "version": "0.1a0",
    "project_urls": {
        "CI": "https://github.com/datasette/datasette-remove-database/actions",
        "Changelog": "https://github.com/datasette/datasette-remove-database/releases",
        "Homepage": "https://github.com/datasette/datasette-remove-database",
        "Issues": "https://github.com/datasette/datasette-remove-database/issues"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "663d0c82e4f56e563ba051abc6bfd3e07fd72d15eac51eea4ec6bc2cfe56fc65",
                "md5": "e9c4425ff612779a2ef5d990efd1a7b5",
                "sha256": "a686048526c1ac2d1037a041a81793cf2722684156c6150739abfceccdaf0e98"
            },
            "downloads": -1,
            "filename": "datasette_remove_database-0.1a0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e9c4425ff612779a2ef5d990efd1a7b5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 3313,
            "upload_time": "2025-02-12T18:34:59",
            "upload_time_iso_8601": "2025-02-12T18:34:59.602379Z",
            "url": "https://files.pythonhosted.org/packages/66/3d/0c82e4f56e563ba051abc6bfd3e07fd72d15eac51eea4ec6bc2cfe56fc65/datasette_remove_database-0.1a0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "c55d2dcea28586463cca1d405bf864a27b31c2e9dbe3a3902970735e8e9633f0",
                "md5": "e075f06ead843cf584843daebf5687ec",
                "sha256": "e88985d9347f48d67c557f905ac9141632b0d210963d6cd13bda86fb38c5e420"
            },
            "downloads": -1,
            "filename": "datasette_remove_database-0.1a0.tar.gz",
            "has_sig": false,
            "md5_digest": "e075f06ead843cf584843daebf5687ec",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 4077,
            "upload_time": "2025-02-12T18:35:01",
            "upload_time_iso_8601": "2025-02-12T18:35:01.914079Z",
            "url": "https://files.pythonhosted.org/packages/c5/5d/2dcea28586463cca1d405bf864a27b31c2e9dbe3a3902970735e8e9633f0/datasette_remove_database-0.1a0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-12 18:35:01",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "datasette",
    "github_project": "datasette-remove-database",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "datasette-remove-database"
}
        
Elapsed time: 0.42828s