Create a local copy of database files from a Datasette instance
Project description
datasette-clone
Create a local copy of database files from a Datasette instance.
How to install
$ pip install datasette-clone
Usage
This only works against Datasette instances running immutable databases (with the -i
opiton). Most databases published using the datasette publish
command should be doing this.
To download copies of all .db
files from an instance, run:
datasette-clone https://latest.datasette.io
You can provide an optional second argument to specify a directory:
datasette-clone https://latest.datasette.io /tmp/here-please
The command stores its own copy of a databases.json
manifest and uses it to only download databeses that have changed.
If your instance is protected by an API token, you can use --token
to provide it:
datasette-clone https://latest.datasette.io --token=xyz
For verbose output showing what the tool is doing, use -v
.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for datasette_clone-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39097a3e1aaee114574b994ad41b8a460dedc0e0f3f282d09bb80eecc93567bf |
|
MD5 | 3ef692fd7e3fccf12463e47994dd8e6a |
|
BLAKE2b-256 | 1fac43e1a76c3c22dc6631a090d28e8c2ffcd2dc716ec536a50839665c90a193 |