Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

33
pipx Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pipx
> Install and run Python applications in isolated environments.
> More information: <https://github.com/pypa/pipx>.
- Run an app in a temporary virtual environment:
`pipx run {{pycowsay}} {{moo}}`
- Install a package in a virtual environment and add entry points to path:
`pipx install {{package}}`
- List installed packages:
`pipx list`
- Run an app in a temporary virtual environment with a package name different from the executable:
`pipx run --spec {{httpx-cli}} {{httpx}} {{http://www.github.com}}`
- Inject dependencies into an existing virtual environment:
`pipx inject {{package}} {{dependency1 dependency2 ...}}`
- Install a package in a virtual environment with pip arguments:
`pipx install --pip-args='{{pip-args}}' {{package}}`