Show a list of currently installed Python packages
Install this plugin in the same environment as Datasette.
datasette install datasette-packagesVisit /-/packages to see a list of installed Python packages. Each package links to a detail page at /-/packages/package-name showing the full metadata and README for that package.
Visit /-/packages.json to get the list 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
}
}Run the tests using uv run pytest:
cd datasette-packages
uv run pytestTo try the plugin locally, use:
uv run datasetteThen visit http://localhost:8001/-/packages