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
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
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for datasette_clone-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf317971d18fd73caf6773f57c5bf75df2d8063d90511b5d570033de8833f1d1 |
|
MD5 | f4e1f82049ae5f3f3d830c41a24e7790 |
|
BLAKE2b-256 | 1649150e0bad984677a75efaa0b501eaf16173685addbed4692e6ec52b6a5828 |