You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

datasette-render-image-tags

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datasette-render-image-tags

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

0.1
pipPyPI
Maintainers
1

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts