/** * PyPI API Handler * * Extracts package information from pypi.org using the JSON API. * Provides detailed package metadata, dependencies, and version info. */ import { BaseSiteHandler, type FetchFunction, type SiteHandlerOptions, type SiteHandlerResult } from './types.js'; export declare class PyPIHandler extends BaseSiteHandler { readonly name = "PyPI"; readonly strategy: "api:pypi"; canHandle(url: string): boolean; extract(url: string, fetch: FetchFunction, opts: SiteHandlerOptions): Promise; /** * Extract package name from PyPI URL * Handles various URL formats: * - pypi.org/project/{package} * - pypi.org/project/{package}/{version} * - pypi.python.org/pypi/{package} * - pypi.python.org/pypi/{package}/{version} */ private getPackageName; /** * Format PyPI package metadata into readable content */ private formatPackage; } export declare const pypiHandler: PyPIHandler; //# sourceMappingURL=pypi-handler.d.ts.map