Skip to content

simonw/datasette-granian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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