pyufunc.pypi_downloads#
- pyufunc.pypi_downloads(pkg_name)#
Get the total downloads of a package from PyPI.
- Parameters:
pkg_name (str) – The name of the package.
- Returns:
A dictionary containing the total downloads of the package.
- Return type:
Examples
>>> pypi_downloads("pandas") # package is found {'pandas': {'Total downloads': 4051345849.0}}
>>> pypi_downloads("pandas123") # package is not found {'pandas123': 0}