Skip to content

pipx Backend experimental

You may install python packages directly from:

  • PyPI
  • Git
  • Github
  • Http

The code for this is inside of the mise repository at ./src/forge/pipx.rs.

Dependencies

This relies on having pipx installed. You can install it with or without mise. Here is how to install pipx with mise:

sh
mise use -g python
pip install --user pipx

Other installation instructions can be found here

Usage

The following installs the latest version of black and sets it as the active version on PATH:

sh
$ mise use -g pipx:psf/black
$ black --version
black, 24.3.0

The version will be set in ~/.config/mise/config.toml with the following format:

toml
[tools]
"pipx:psf/black" = "latest"

Supported Pipx Syntax

DescriptionUsage
PyPI shorthand latest versionpipx:black
PyPI shorthand for specific versionpipx:[email protected]
Github shorthand for latest versionpipx:psf/black
Github shorthand for specific versionpipx:psf/[email protected]
Git syntax for latest versionpipx:git+https://github.com/psf/black
Git syntax for a branchpipx:git+https://github.com/psf/black.git@main
Https with zipfilepipx:https://github.com/psf/black/archive/18.9b0.zip

Other syntax may work but is unsupported and untested.

Licensed under the MIT License. Maintained by @jdx and friends.