Skip to main content

Datasette plugin for SHOWBOAT_REMOTE_URL

Project description

datasette-showboat

PyPI Changelog Tests License

Datasette plugin that provides a remote viewer for Showboat documents. It receives streaming document chunks over HTTP and displays them in a live-updating web interface.

See this blog post for background on this project.

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-showboat

Usage

Once installed, the plugin adds a /-/showboat page to your Datasette instance listing all received documents, and a /-/showboat/receive endpoint for ingesting chunks.

Sending documents

Set the SHOWBOAT_REMOTE_URL environment variable to point at your Datasette instance:

export SHOWBOAT_REMOTE_URL="https://your-datasette-instance/-/showboat/receive"

The /-/showboat page will display the correct URL for your instance including the hostname.

Permissions

Viewing showboat documents requires the showboat permission. By default this is denied to anonymous users — only the root user (when Datasette is started with --root) has access automatically.

To grant access to specific users, add to your datasette.yaml:

permissions:
  showboat:
    id: your-username

Or to allow all authenticated users:

permissions:
  showboat:
    id: "*"

The receive endpoint (/-/showboat/receive) does not require the showboat permission — it uses token authentication instead (see below).

Token authentication

To protect the receive endpoint, configure a secret token in your datasette.yaml (or metadata.yaml):

plugins:
  datasette-showboat:
    token: your-secret-token

When a token is configured, all requests to /-/showboat/receive must include it as a query parameter:

export SHOWBOAT_REMOTE_URL="https://your-datasette-instance/-/showboat/receive?token=your-secret-token"

Without a configured token, the receive endpoint accepts all POST requests.

Custom database

By default chunks are stored in Datasette's internal database. To use a named database instead:

plugins:
  datasette-showboat:
    database: my_database

Development

To set up this plugin locally, first checkout the code. You can confirm it is available like this:

cd datasette-showboat
# Confirm the plugin is visible
uv run datasette plugins

To run the tests:

uv run 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_showboat-0.1a1.tar.gz (36.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datasette_showboat-0.1a1-py3-none-any.whl (33.7 kB view details)

Uploaded Python 3

File details

Details for the file datasette_showboat-0.1a1.tar.gz.

File metadata

  • Download URL: datasette_showboat-0.1a1.tar.gz
  • Upload date:
  • Size: 36.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for datasette_showboat-0.1a1.tar.gz
Algorithm Hash digest
SHA256 7e5f70d2df5d94988527cc711fa283b63adb2ab3ee1a3c5087f1b77f17805e99
MD5 0a1a79a8c9b14f8e855e25f8410ddaeb
BLAKE2b-256 5a8d53c9a390b84bb1e33a508aee88b1c528459d9b5b602a34b2db09ec25b3ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_showboat-0.1a1.tar.gz:

Publisher: publish.yml on simonw/datasette-showboat

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file datasette_showboat-0.1a1-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_showboat-0.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 df54be28d0718e001fe26467b557ed53da22918aca2f08f53e7dcdeffec24cc7
MD5 5b2240de82315c18c35d38585abc12d0
BLAKE2b-256 1a0a65c367f93be2c6e5b35e193be4a4d7b7f96ee5b035539f9f6d884c7111a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_showboat-0.1a1-py3-none-any.whl:

Publisher: publish.yml on simonw/datasette-showboat

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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