Part of https://github.com/simonw/datasette-app
Project description
datasette-app-support
Part of https://github.com/simonw/datasette-app
Installation
Install this plugin in the same environment as Datasette.
$ datasette install datasette-app-support
API endpoints
This plugin exposes APIs that are called by the Electron wrapper.
/-/open-database-file
POST /-/open-database-file
{"path": "/path/to/file.db"}
Attaches a new database file to the running Datasette instance - used by the "Open Database..." menu option.
Returns HTTP 200 if it works, 400 with an "error"
JSON string message if it fails.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-app-support
python3 -mvenv venv
source venv/bin/activate
Or if you are using pipenv
:
pipenv shell
Now install the dependencies and test dependencies:
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-app-support-0.1.1.tar.gz
.
File metadata
- Download URL: datasette-app-support-0.1.1.tar.gz
- Upload date:
- Size: 3.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.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae1e0d68b4cf499189325983e1b65bd536653ab9ddac3b6da10c96e3cc956c30 |
|
MD5 | bda8cac2ddb7d5313e41f6d8dc6cb075 |
|
BLAKE2b-256 | 8d57b691318b2b0b2b714fac855126785edde35fc4d2c24ebde0564a41fdd133 |
File details
Details for the file datasette_app_support-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: datasette_app_support-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.4 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.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 411f28f94cfbbf3f2efb344acb001da6b3f49934de084ea04cb20c932eff0464 |
|
MD5 | 0fd22f418c7f374933a0886422662596 |
|
BLAKE2b-256 | 125b4203560ecd1c73fdf86f9e746e9cb95228e00f241d041616aa1bde84dbf8 |