https://github.com/datasette/datasette-export-database
Export a copy of a mutable SQLite database on demand
https://github.com/datasette/datasette-export-database
Last synced: 2 months ago
JSON representation
Export a copy of a mutable SQLite database on demand
- Host: GitHub
- URL: https://github.com/datasette/datasette-export-database
- Owner: datasette
- License: apache-2.0
- Created: 2024-03-09T15:53:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-16T00:49:47.000Z (over 1 year ago)
- Last Synced: 2024-11-06T14:46:06.431Z (8 months ago)
- Language: Python
- Size: 15.6 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# datasette-export-database
[](https://pypi.org/project/datasette-export-database/)
[](https://github.com/datasette/datasette-export-database/releases)
[](https://github.com/datasette/datasette-export-database/actions/workflows/test.yml)
[](https://github.com/datasette/datasette-export-database/blob/main/LICENSE)Export a copy of a SQLite database on demand
## Installation
Install this plugin in the same environment as Datasette.
```bash
datasette install datasette-export-database
```
## UsageUsers with the `export-database` permission will be able to download a fresh snapshot of any on-disk (not in-memory) database using a new option in the database action menu.
## Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
```bash
cd datasette-export-database
python3 -m venv venv
source venv/bin/activate
```
Now install the dependencies and test dependencies:
```bash
pip install -e '.[test]'
```
To run the tests:
```bash
pytest
```