Skip to main content

A plugin for Datasette that allows users to select columns where they want image urls to render as images.

Project description

datasette-selective-image-display

PyPI Changelog Tests License

A plugin for Datasette that renders columns of image urls which you select as images (with the link displayed beneath the image).

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-selective-image-display

Usage

Create the metadata.yml file alongside your database, and add the names of the columns which you would like to have display images like so:

databases:
  your-database:
    tables:
      your-table:
        plugins:
          datasette-selective-image-display:
            columns: [image_url, thumbnail]

Then run with datasette phitt.db --metadata metadata.yml.

If no columns are specified then all columns where images are detected will be renderde.

Development

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

cd datasette-selective-image-display
# Confirm the plugin is visible
uv run datasette plugins

To run the tests:

uv run pytest

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datasette_selective_image_display-0.1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file datasette_selective_image_display-0.1.tar.gz.

File metadata

File hashes

Hashes for datasette_selective_image_display-0.1.tar.gz
Algorithm Hash digest
SHA256 f711d2d3962ae225fcada03c0c50db990ed9884ccaa3a71f6fc469aefe73dedf
MD5 1b62a17e97c729fa19be3733809bd82d
BLAKE2b-256 af49151a272b0373c66f299da5c13e499a76f79114f352d9241b4434fdd7320e

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on ChantalMB/datasette-selective-image-display

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_selective_image_display-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_selective_image_display-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3cc44a3bc53485513e00b14041390c5e6c5cc7a0f9ccefb0d0501e78b1538c2b
MD5 174327fbf92415d1842d584390e1e72d
BLAKE2b-256 51de115a7091d6ec6c8f6eec0d3997cb988ee2f253540a1dc87ba9b31fe19461

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on ChantalMB/datasette-selective-image-display

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