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
option). Databases published using the datasette publish
command should be compatible with this tool.
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.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5e2df77db37d30436c0e62e48a91def1c4b6d6bad28c42009b34a37a58ae0eb |
|
MD5 | b83a8935c5c04c2333a2adb49e423c78 |
|
BLAKE2b-256 | d2653eb50adb8b710ebae7da74d9e663bc5e5d7c5bbd6c3e1b01127ea05cd1b5 |