Turn any URLs ending in .jpg/.png/.gif into img tags with width 200
Project description
datasette-render-image-tags
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
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