Skip to main content

Turn any URLs ending in .jpg/.png/.gif into img tags with width 200

Project description

datasette-render-image-tags

PyPI Changelog Tests License

Turn any URLs ending in .jpg/.png/.gif into img tags with width 200

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-render-image-tags

Usage

Once installed, any cells contaning a URL that ends with .png or .jpg or .jpeg or .gif will be rendered using an image tag, with a width of 200px.

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd datasette-render-image-tags
python3 -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

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-render-image-tags-0.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file datasette-render-image-tags-0.1.tar.gz.

File metadata

File hashes

Hashes for datasette-render-image-tags-0.1.tar.gz
Algorithm Hash digest
SHA256 54c389e867d3339579cfa72e2fd88497855f815f503fdb42e12137676811c40d
MD5 73afb4af7e550e4d3386c6a57e70dc78
BLAKE2b-256 a94d5ba009e3a72e6a95a2f3baa70fff10832a101df3767ceba87432f41f7e26

See more details on using hashes here.

File details

Details for the file datasette_render_image_tags-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_render_image_tags-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2c88a7cc77a3681439d7c3b79376c9618f724b63fef9a8e83db1dcc8c83f553e
MD5 8c783279faad4cc690d2d3edc63ea552
BLAKE2b-256 0f47ee0865b04b1c73ce6d027e3ab2ce997498be53b40320dcfe53c3f6b35222

See more details on using hashes here.

Supported by

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