Skip to main content

Show a list of currently installed Python packages

Project description

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:

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datasette-packages-0.2.1.tar.gz (7.2 kB view hashes)

Uploaded Source

Built Distribution

datasette_packages-0.2.1-py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page