Show a list of currently installed Python packages
Project description
datasette-packages
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:
- https://latest-with-plugins.datasette.io/-/packages
- https://latest-with-plugins.datasette.io/-/packages.json
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
}
}
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 hashes)
Built Distribution
Close
Hashes for datasette_packages-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5cf8602fd6af512c2f0275b83d47df09ae088e140e179d700e8ee9417c28b87 |
|
MD5 | d7b1af6aa8873295cc7a60792e013ce1 |
|
BLAKE2b-256 | 07ec2c320a5571c0321ad01c55d67ad43ebc6cb4729be7b24cf177c1b9f361cc |