kencochrane / pypi-mirrors-lib

A simple python library that makes it easy to query for the status of PyPI mirrors.
6 stars 0 forks source link

list of available mirrors? #1

Open schwehr opened 10 years ago

schwehr commented 10 years ago

Is it possible to use this library to get a list of active mirrors?

Also, would be great to have the README.rst have a quick example of listing the servers and getting their status.

I'm a package maintainer for fink on Mac OSX and just had to rip out some custom mirror definitions for [a-z].pypi.python.org

Thanks! -kurt

kencochrane commented 10 years ago

@schwehr not anymore, there was a change to the pypi mirroring scheme, and it is pretty much no longer. It was replaced with a CDN. See PEP 449 (http://legacy.python.org/dev/peps/pep-0449/) for more info.

If you want the unofficial mirrors you can use this json endpoint on pypi-mirrors.org http://www.pypi-mirrors.org/data.json

Ken