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 Distribution

xpip_mirror-0.6.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

xpip_mirror-0.6-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file xpip_mirror-0.6.tar.gz.

File metadata

  • Download URL: xpip_mirror-0.6.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.18

File hashes

Hashes for xpip_mirror-0.6.tar.gz
Algorithm Hash digest
SHA256 b48b26fb6942cc6689b68a3467c54a7668b43ec06d1dd30577f8c9874e91f3e2
MD5 0f717fb21c398997d1a0fd039569125d
BLAKE2b-256 e35f520f979aed4357830ba5de454f3b1ef2d34d20ef7a69bb8f9eb2bdf26e3f

See more details on using hashes here.

File details

Details for the file xpip_mirror-0.6-py3-none-any.whl.

File metadata

  • Download URL: xpip_mirror-0.6-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.18

File hashes

Hashes for xpip_mirror-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 fbf338d5c9fdc7065b7a50bebb164affd40115f443eb1b167406685e731d1279
MD5 dac1b6452a45f47bb13859d4ff48b529
BLAKE2b-256 bee61460c7c420fad48938b0ca526e7a054b44e87109f505256d4bea5390e15a

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