datasette-visible-internal-db by datasette

67 downloads this week        Star

README source code

datasette-visible-internal-db

PyPI Changelog Tests License

Datasette plugin for making the internal database visible for debugging

Datasette 1.0a5 made the internal database no longer visible through the Datasette interface.

This plugin brings it back, for debugging purposes.

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-visible-internal-db

The internal database will now be publicly visible at /_internal in your Datasette instance.

Controlling access to the internal database

You can use Datasette's permissions mechanism to control who is allowed to interact with the internal database.

To restrict access to just the root actor, drop this into your configuration:

databases:
  _internal:
    allow:
      id: root