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-6/

Package Listing Tool

Build a command-line tool that lists installed packages in a Python environment with filtering capabilities.

Capabilities

List all packages

  • When run with no arguments, display all installed packages with their versions in columnar format @test
  • The output should show package name in one column and version in another @test

Filter by update status

  • When run with an "outdated" filter flag, only show packages that have newer versions available @test
  • For outdated packages, display the current version and the latest available version @test

Filter by installation type

  • When run with an "editable" filter flag, only show packages installed in editable/development mode @test
  • When run with a "local" filter flag, exclude packages from the system site-packages @test

Output format options

  • Support a "freeze" format that outputs package specifications suitable for requirements files @test
  • Support a "json" format that outputs structured data with package metadata @test

Implementation

@generates

API

def list_packages(
    format: str = "columns",
    outdated: bool = False,
    editable: bool = False,
    local: bool = False
) -> str:
    """
    List installed packages with optional filtering.

    Args:
        format: Output format - "columns", "freeze", or "json"
        outdated: If True, only show packages with updates available
        editable: If True, only show editable installations
        local: If True, exclude system site-packages

    Returns:
        Formatted string containing the package listing
    """
    pass

Dependencies { .dependencies }

pip { .dependency }

The Python package installer with package listing capabilities.

@satisfied-by

Install with Tessl CLI

npx tessl i tessl/pypi-pip

tile.json