Skip to content
Snippets Groups Projects

List of Setuptools release

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by nimrod

    Get a list of Setuptools from PyPI.

    setuptools-releases.py 287 B
    import requests
    import pkg_resources
    
    if __name__ == "__main__":
        all_releases = requests.get("https://pypi.org/pypi/setuptools/json").json()["releases"]
        for i in filter(lambda x: pkg_resources.parse_version(x) >= pkg_resources.parse_version('40'), all_releases):
            print(i)
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment