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
Built Distribution
File details
Details for the file datasette-packages-0.2.1.tar.gz
.
File metadata
- Download URL: datasette-packages-0.2.1.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fafd4057b46bf3a91fab95afa92854e9eb74ef4098f73fb71b11fc073f9cbc7a |
|
MD5 | 8a6ac9efcb255cb5b9d21bc8f61cf0f9 |
|
BLAKE2b-256 | 304aeced59667884c4cb5260ea1e77ff75d87383afb7a694f5669d4cc89dcdcb |
File details
Details for the file datasette_packages-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: datasette_packages-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffcc9fa136425589b3cac04eadbff5917b6f3b7f62f71aa8c7da72ae2ef93bfb |
|
MD5 | a31411875f58a3b85a2efa933f2c8ffb |
|
BLAKE2b-256 | 2765fbb0ef56cba0c9857d6fd5efbb1d5098525ca8ab91f608378715fab1c08a |