Skip to main content

Part of https://github.com/simonw/datasette-app

Project description

datasette-app-support

PyPI Changelog Tests License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datasette-app-support-0.1.2.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

datasette_app_support-0.1.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file datasette-app-support-0.1.2.tar.gz.

File metadata

  • Download URL: datasette-app-support-0.1.2.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

Hashes for datasette-app-support-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d801494bbab74eefbdbdcbfa3c6413ba9380ec823190c247c814a46271271ea1
MD5 a0baff8ebe7284693a3409f6a6eaf777
BLAKE2b-256 6af2cbecc432e537c9887926b9870102cbbb9194e797de5b877519c6305b6a88

See more details on using hashes here.

File details

Details for the file datasette_app_support-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: datasette_app_support-0.1.2-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

Hashes for datasette_app_support-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a69c464e1fdb9161a630c97646ad1896e2a8f0bd9859c1667bc7bb307356a78b
MD5 d98ad89d9a93d686f85a98beefadaf36
BLAKE2b-256 82579340d36a920abb6fb71f17f3093eba6bc4c92d9c7c9c7f8296c626a5fc88

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page