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.1a2.tar.gz (37.7 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.1a2-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: datasette_showboat-0.1a2.tar.gz
  • Upload date:
  • Size: 37.7 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.1a2.tar.gz
Algorithm Hash digest
SHA256 0d8d29b3c2b03392b2511a02b07a19b09bcf228007d3378a7c606cbe55762151
MD5 dfd8aee065a783e43f9509619b76df4f
BLAKE2b-256 eb9b5f7392f0502f920e4740aaf96babb218d44a1e778f99e77978b483b61c77

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for datasette_showboat-0.1a2-py3-none-any.whl
Algorithm Hash digest
SHA256 c42b0f90a38f990e73bb1022d6d39f3e66cb11290163c3711a500166f52c4904
MD5 e7dcec6570e6ad818ff9b06ed455cb05
BLAKE2b-256 90a051f2c8cc539780e0dd90339ae319db85096b3d6f35147f2e8fc8f2b093a8

See more details on using hashes here.

Provenance

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