Datasette plugin for importing tables from other Datasette instances
Project description
datasette-import-table
Datasette plugin for importing tables from other Datasette instances
Installation
Install this plugin in the same environment as Datasette.
$ datasette install datasette-import-table
Usage
Visit /-/import-table
for the interface. Paste in the URL to a table page on another Datasette instance and click the button to import that table.
By default only the root actor can access the page - so you'll need to run Datasette with the --root
option and click on the link shown in the terminal to sign in and access the page.
The import-table
permission governs access. You can use permission plugins such as datasette-permissions-sql to grant additional access to the write interface.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-import-table
python3 -mvenv venv
source venv/bin/activate
Or if you are using pipenv
:
pipenv shell
Now install the dependencies and tests:
pip install -e '.[test]'
To run the tests:
pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file datasette-import-table-0.3.tar.gz
.
File metadata
- Download URL: datasette-import-table-0.3.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e342cd1b1ccd1ff6205963b56e13dbdf151acf2554ecc82c991b0616a6b31db |
|
MD5 | f85c973ea9d50501125d51544945319e |
|
BLAKE2b-256 | bb598a9357885a5972682369160b25cd7c930dbc7311ed67d71bf7b93e88d7f2 |
File details
Details for the file datasette_import_table-0.3-py3-none-any.whl
.
File metadata
- Download URL: datasette_import_table-0.3-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cb90378dc88548cca8e3feb49c3e48f7204e83ade6a04f0f7989873e460eb83 |
|
MD5 | 199b2a5551ddf1f05a38c2f66565d0a4 |
|
BLAKE2b-256 | bad9cbb35aaae3e85a4d6b60bfe2b3a14de07155d3daa075ebaa0f29a6002015 |