Pypi
feu.pypi ¶
Contain PyPI utility functions.
feu.pypi.get_pypi_versions
cached
¶
get_pypi_versions(package: str) -> tuple[str, ...]
Get the package versions available on PyPI.
The package versions are read from PyPI.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
package
|
str
|
The package name. |
required |
Returns:
Type | Description |
---|---|
tuple[str, ...]
|
A list containing the version strings. |
Example usage:
>>> from feu.pypi import get_pypi_versions
>>> versions = get_pypi_versions("requests") # doctest: +SKIP