Show a list of currently installed Python packages
Install this plugin in the same environment as Datasette.
$ datasette install datasette-packages
Visit /-/packages
to see a list of installed Python packages.
Visit /-/packages.json
to get that back as JSON.
The output of this plugin can be seen here:
- https://latest-with-plugins.datasette.io/-/packages
- https://latest-with-plugins.datasette.io/-/packages.json
if you have version 2.1 or higher of the datasette-graphql plugin installed you can also query the list of packages using this GraphQL query:
{
packages {
name
version
}
}
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