check_package_python_compatibility
Check if a package is compatible with a specific Python version.
This tool analyzes a package's Python version requirements and determines if it's compatible with your target Python version.
Args: package_name: The name of the PyPI package to check (e.g., 'django', 'requests') target_python_version: Target Python version to check (e.g., '3.9', '3.10.5', '3.11') use_cache: Whether to use cached package data (default: True)
Returns: Dictionary containing detailed compatibility information including:
- Compatibility status (True/False)
- Source of compatibility information (requires_python or classifiers)
- Detailed analysis and suggestions
- Package version requirements
Raises: InvalidPackageNameError: If package name is empty or invalid PackageNotFoundError: If package is not found on PyPI NetworkError: For network-related errors