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
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file datasette_selective_image_display-0.1.tar.gz.
File metadata
- Download URL: datasette_selective_image_display-0.1.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f711d2d3962ae225fcada03c0c50db990ed9884ccaa3a71f6fc469aefe73dedf
|
|
| MD5 |
1b62a17e97c729fa19be3733809bd82d
|
|
| BLAKE2b-256 |
af49151a272b0373c66f299da5c13e499a76f79114f352d9241b4434fdd7320e
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datasette_selective_image_display-0.1.tar.gz -
Subject digest:
f711d2d3962ae225fcada03c0c50db990ed9884ccaa3a71f6fc469aefe73dedf - Sigstore transparency entry: 1457013507
- Sigstore integration time:
-
Permalink:
ChantalMB/datasette-selective-image-display@fbb013a1ee5c31762a587144fede96d68a61356f -
Branch / Tag:
refs/tags/0.1 - Owner: https://github.com/ChantalMB
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fbb013a1ee5c31762a587144fede96d68a61356f -
Trigger Event:
release
-
Statement type:
File details
Details for the file datasette_selective_image_display-0.1-py3-none-any.whl.
File metadata
- Download URL: datasette_selective_image_display-0.1-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3cc44a3bc53485513e00b14041390c5e6c5cc7a0f9ccefb0d0501e78b1538c2b
|
|
| MD5 |
174327fbf92415d1842d584390e1e72d
|
|
| BLAKE2b-256 |
51de115a7091d6ec6c8f6eec0d3997cb988ee2f253540a1dc87ba9b31fe19461
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datasette_selective_image_display-0.1-py3-none-any.whl -
Subject digest:
3cc44a3bc53485513e00b14041390c5e6c5cc7a0f9ccefb0d0501e78b1538c2b - Sigstore transparency entry: 1457013575
- Sigstore integration time:
-
Permalink:
ChantalMB/datasette-selective-image-display@fbb013a1ee5c31762a587144fede96d68a61356f -
Branch / Tag:
refs/tags/0.1 - Owner: https://github.com/ChantalMB
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fbb013a1ee5c31762a587144fede96d68a61356f -
Trigger Event:
release
-
Statement type: