The PyPA recommended tool for installing Python packages.
91
A utility that downloads Python packages to a local directory without installing them, with support for interrupted download resumption and platform-specific package selection.
@generates
def download_package(
package_spec: str,
destination_dir: str,
platform: str | None = None
) -> bool:
"""
Download a Python package to the specified directory without installing it.
Args:
package_spec: Package specification (e.g., "requests==2.31.0")
destination_dir: Directory where package files will be saved
platform: Target platform (e.g., "linux_x86_64", "win_amd64", "macosx_10_9_x86_64")
Returns:
True if download successful, False otherwise
"""
pass
def download_from_requirements(
requirements_file: str,
destination_dir: str
) -> bool:
"""
Download packages listed in a requirements file without installing them.
Args:
requirements_file: Path to requirements.txt file
destination_dir: Directory where package files will be saved
Returns:
True if all downloads successful, False otherwise
"""
passThe Python package installer with download and resume capabilities.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/pypi-pipevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10