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.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

datasette_packages-0.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file datasette-packages-0.2.tar.gz.

File metadata

  • Download URL: datasette-packages-0.2.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for datasette-packages-0.2.tar.gz
Algorithm Hash digest
SHA256 2626032dbddc385cf548801b43f6834c79065a862eb8333a102c2ed639691e72
MD5 a5795aa72f1a85be069871acf81a7a52
BLAKE2b-256 9dc964b36febfdf05185df5ed8f4f915460d9ffd100dc827d7b9df07936a01c3

See more details on using hashes here.

File details

Details for the file datasette_packages-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_packages-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a5cf8602fd6af512c2f0275b83d47df09ae088e140e179d700e8ee9417c28b87
MD5 d7b1af6aa8873295cc7a60792e013ce1
BLAKE2b-256 07ec2c320a5571c0321ad01c55d67ad43ebc6cb4729be7b24cf177c1b9f361cc

See more details on using hashes here.

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