pip-lock, pip-search: add page (#18388)

Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
Co-authored-by: Lena Pastwa <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
Sadeed
2025-10-05 19:31:53 +05:00
committed by GitHub
parent bb148e2a47
commit 42718628eb
2 changed files with 30 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
# pip lock
> Lock Python packages and their dependencies into a reproducible file.
> Experimental feature of `pip`.
> More information: <https://pip.pypa.io/en/stable/cli/pip_lock/>.
- Generate a `pylock.toml` for the current project:
`pip lock {{[-e|--editable]}} .`
- Lock dependencies from a requirements file:
`pip lock {{[-r|--requirement]}} {{path/to/requirements.txt}}`
- Specify a custom output file for the lock:
`pip lock {{[-o|--output]}} {{path/to/lockfile.toml}}`
- Lock a specific package and its dependencies:
`pip lock {{package}}`
+9
View File
@@ -0,0 +1,9 @@
# pip search
> Search for Python packages by name or summary.
> Doesn't work with PyPI; may work with other package indexes.
> More information: <https://pip.pypa.io/en/stable/cli/pip_search/>.
- Search for packages using a custom package index:
`pip search {{[-i|--index]}} {{example.com}} {{query}}`