Newsletter
TechAnV Blog
Get updates on security engineering, Rust, eBPF, and DevSecOps. No spam, unsubscribe anytime.
Check your inbox and click the confirmation link to complete your subscription.
Installing and upgrading Datasette plugins with pipx#
If you installed datasette using pipx install datasette you can install additional plugins with pipx inject like so:
1$ datasette plugins2[]3
4$ pipx inject datasette datasette-json-html5 injected package datasette-json-html into venv datasette6done! ✨ 🌟 ✨7
8$ datasette plugins9[10 {11 "name": "datasette-json-html",12 "static": false,13 "templates": false,14 "version": "0.6"15 }16]Thanks Matthew Somerville.
I then had to figure out how to upgrade them. Thanks to https://github.com/pipxproject/pipx/issues/79 I figured out the following recipe using pipx runpip datasette install -U name-of-plugin:
1% datasette plugins2[3 {4 "name": "datasette-vega",5 "static": true,6 "templates": false,7 "version": "0.6"8 }9]10
11$ pipx runpip datasette install -U datasette-vega12Collecting datasette-vega13Downloading datasette_vega-0.6.2-py3-none-any.whl (1.8 MB)14 |████████████████████████████████| 1.8 MB 2.0 MB/s15...16Installing collected packages: datasette-vega17Attempting uninstall: datasette-vega18 Found existing installation: datasette-vega 0.619 Uninstalling datasette-vega-0.6:20 Successfully uninstalled datasette-vega-0.621Successfully installed datasette-vega-0.6.222
23$ datasette plugins24[25 {26 "name": "datasette-vega",27 "static": true,28 "templates": false,29 "version": "0.6.2"30 }31]I added all of this to the Datasette docs here: https://docs.datasette.io/en/latest/installation.html#using-pipx (see https://github.com/simonw/datasette/issues/756).
Newsletter
TechAnV Blog
Get updates on security engineering, Rust, eBPF, and DevSecOps. No spam, unsubscribe anytime.
Check your inbox and click the confirmation link to complete your subscription.