datasette-tail by datasette

19 downloads this week        Star

README source code

datasette-tail

PyPI Changelog Tests License

Tools for tailing your database

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-tail

Usage

This plugin provides a simple debugging tool. Visit /dbname/-/tail to see a JSON representation of changes to your database. The first time you visit that page it will represent everything in the specified database. Refreshing the page will show any changes since the last time you loaded that page.

Use /dbname/-/tail.json to get the raw JSON.

The plugin obeys the view-database permission.

Development

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

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

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest