Skip to main content

pip mirror management

Project description

xpip-mirror

If you live within the Great Wall Firewall, the access to the official source of PyPI is extremely unstable.

The xpip-mirror mirror management can probe the delay of mirrors in the list and select the current optimal path.

list all available mirrors

root@zou:~# xpip-mirror list
name      URL                                       HOST                                       PING(ms)
--------  ----------------------------------------  -----------------------------------------  ----------
ustc      https://pypi.mirrors.ustc.edu.cn/simple   pypi.mirrors.ustc.edu.cn (218.104.71.170)  8.3
baidu     https://mirror.baidu.com/pypi/simple      mirror.baidu.com (58.243.203.35)           15.7
aliyun    https://mirrors.aliyun.com/pypi/simple    mirrors.aliyun.com (119.167.250.248)       17.7
tsinghua  https://pypi.tuna.tsinghua.edu.cn/simple  pypi.tuna.tsinghua.edu.cn (101.6.15.130)   23.7
douban    https://pypi.douban.com/simple            pypi.douban.com (49.233.242.15)            32.0
pypi      https://pypi.org/simple                   pypi.org (151.101.128.223)                 timeout

Suggest using the installation command:
pip install -i https://pypi.mirrors.ustc.edu.cn/simple <package-name>

config mirror

show config

root@zou:~# xpip-mirror now
https://mirrors.aliyun.com/pypi/simple

choice the best

root@zou:~# xpip-mirror choice
Writing to /root/.config/pip/pip.conf
choice ustc: https://pypi.mirrors.ustc.edu.cn/simple

choice by name

root@zou:~# xpip-mirror choice tsinghua
Writing to /root/.config/pip/pip.conf
choice tsinghua: https://pypi.tuna.tsinghua.edu.cn/simple

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xpip.mirror-0.2.3-py2.py3-none-any.whl (13.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file xpip.mirror-0.2.3-py2.py3-none-any.whl.

File metadata

  • Download URL: xpip.mirror-0.2.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.21

File hashes

Hashes for xpip.mirror-0.2.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 77c316c5e647b0c4e48cf547e02161baa73d7ce1bda2e3a3554a243f1e0a16ba
MD5 18fa7ff25913052a7eb0bfb2e285fd2b
BLAKE2b-256 b360c16b3b05295441ca1543b1b692b906739106802d35cd8647814d4907e2d1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page