feat: add PyPI package download statistics and popularity analysis tools
- Add PyPIStatsClient for pypistats.org API integration - Implement get_package_download_stats for recent download statistics - Implement get_package_download_trends for time series analysis - Implement get_top_packages_by_downloads for popularity rankings - Add comprehensive MCP tools for download statistics - Include download trends analysis with growth indicators - Add repository information and metadata integration - Provide comprehensive test coverage - Add demo script and usage examples - Update README with new features and examples Signed-off-by: longhao <hal.long@outlook.com>
This commit is contained in:
parent
5344726014
commit
99c603ed37
7 changed files with 1195 additions and 1 deletions
|
|
@ -10,6 +10,11 @@ from .compatibility_check import (
|
|||
suggest_python_version_for_packages,
|
||||
)
|
||||
from .dependency_resolver import resolve_package_dependencies
|
||||
from .download_stats import (
|
||||
get_package_download_stats,
|
||||
get_package_download_trends,
|
||||
get_top_packages_by_downloads,
|
||||
)
|
||||
from .package_downloader import download_package_with_dependencies
|
||||
from .package_query import (
|
||||
query_package_dependencies,
|
||||
|
|
@ -26,4 +31,7 @@ __all__ = [
|
|||
"suggest_python_version_for_packages",
|
||||
"resolve_package_dependencies",
|
||||
"download_package_with_dependencies",
|
||||
"get_package_download_stats",
|
||||
"get_package_download_trends",
|
||||
"get_top_packages_by_downloads",
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue