Skip to content

simonw/datasette-packages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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. 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.

Demo

The output of this plugin can be seen here:

With datasette-graphql

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
  }
}

Demo of this query.

Development

Run the tests using uv run pytest:

cd datasette-packages
uv run pytest

To try the plugin locally, use:

uv run datasette

Then visit http://localhost:8001/-/packages

About

Show a list of currently installed Python packages

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Contributors