stubber.publish.pypi

Read versions published to PyPi or test.PyPi. uses the pypi-simple package to get the versions from the simple index.

Module Contents

Functions

get_pypi_versions(package_name[, base, production])

Get all versions of a package from a PyPI endpoint.

stubber.publish.pypi.get_pypi_versions(package_name: str, base: packaging.version.Version | None = None, production: bool = True)

Get all versions of a package from a PyPI endpoint.

Parameters:
  • package_name (str) –

  • base (Optional[packaging.version.Version]) –

  • production (bool) –