CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-pip

The PyPA recommended tool for installing Python packages.

91

1.07x
Overview
Eval results
Files

task.mdevals/scenario-10/

Package Download Manager

A utility that downloads Python packages to a local directory without installing them, with support for interrupted download resumption and platform-specific package selection.

Capabilities

Download packages to a specified directory

  • Downloads a package named "requests" version 2.31.0 to a directory named "packages" without installing it @test
  • Downloads packages from a requirements file to a specified directory @test

Resume interrupted downloads

  • Resumes downloading large packages if the download is interrupted, continuing from where it left off @test

Download platform-specific packages

  • Downloads packages for a specific platform (e.g., Linux) even when running on a different platform @test

Implementation

@generates

API

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
    """
    pass

Dependencies { .dependencies }

pip { .dependency }

The Python package installer with download and resume capabilities.

@satisfied-by

Install with Tessl CLI

npx tessl i tessl/pypi-pip

tile.json