Skip to main content

Run Datasette using the Granian HTTP server

Project description

datasette-granian

PyPI Changelog Tests License

Run Datasette using the Granian HTTP server

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-granian

Usage

Run datasette granian ... instead of datasette serve ... - most options should remain the same.

% datasette granian fixtures.db content.db --crossdb
[INFO] Starting granian
[INFO] Listening at: 127.0.0.1:8001
[INFO] Booting worker-1 with pid: 92793
[INFO] Started worker-1
[INFO] Started worker-1 runtime-1

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd datasette-granian
python3 -m venv venv
source venv/bin/activate

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-granian-0.1.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

datasette_granian-0.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file datasette-granian-0.1.tar.gz.

File metadata

  • Download URL: datasette-granian-0.1.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for datasette-granian-0.1.tar.gz
Algorithm Hash digest
SHA256 4680b1ebca4ae01b173fcc354f318aa2c3af278ff2b5981c5fafe9fd1a8e0582
MD5 b84c06b7aa7d1af57f02eb27a6040030
BLAKE2b-256 ee7cf6e3729fe7bf45eb66e9a49ded82fe17e9c3d29246db61856809ca6d00e7

See more details on using hashes here.

File details

Details for the file datasette_granian-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_granian-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f3d2902682809b4a927be862e4593641c26051ce495b2b0e96bf733e8025125f
MD5 b1b7179bde9f48da72d2f6ddb078c262
BLAKE2b-256 ba82e964af79dfeb0d349e5f6f3de030cd8b25b61caf53bb4da7fc301245a438

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