datasette-packages by simonw

29 downloads this week        Star

README

datasette-packages

PyPI Changelog Tests License

Show a list of currently installed Python packages

Installation

Install this plugin in the same environment as Datasette.

$ datasette install datasette-packages

Usage

Visit /-/packages to see a list of installed Python packages.

Visit /-/packages.json to get that back as JSON.

Demo

The output of this plugin can be seen here:

Development

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

cd datasette-packages
python3 -mvenv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest