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.

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.1a0.tar.gz (36.0 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.1a0-py3-none-any.whl (33.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: datasette_showboat-0.1a0.tar.gz
  • Upload date:
  • Size: 36.0 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.1a0.tar.gz
Algorithm Hash digest
SHA256 8af16fff8cbf08c04453699f2c4a598924a6a8d373a1114602009e83d48e789f
MD5 16521d485d89277686fecbdbe679683e
BLAKE2b-256 6d0a551b3e710b7a3bf41897e020b1b603cef60c51187de290dc11ce51d48f3b

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_showboat-0.1a0.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.1a0-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_showboat-0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 c416f06c23b25fddf8c8f44f7ca62c8ce1d5c1dd6aac37412a38745257a5b8ad
MD5 3773cedbb9b8f32a08537f3033f664ed
BLAKE2b-256 89c055df4e0be289203ea0834654485fd656a22a97286a9f35a0b98bd1502f9e

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_showboat-0.1a0-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