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.7.tar.gz
(5.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
xpip_mirror-0.7-py3-none-any.whl
(12.4 kB
view details)
File details
Details for the file xpip_mirror-0.7.tar.gz.
File metadata
- Download URL: xpip_mirror-0.7.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0601124ce7d001fc19bed9e33216c9917c1f6a3a73e59c9d720109189f13178a
|
|
| MD5 |
3cfce11fc94a61e7aa806e229ab1519b
|
|
| BLAKE2b-256 |
c7de6d5337c2e6008483d7dc0fd58d1c14cc29838834ea0c1b5da96f50e590a7
|
File details
Details for the file xpip_mirror-0.7-py3-none-any.whl.
File metadata
- Download URL: xpip_mirror-0.7-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e64fa2f24a4d7da1fac7b84a382139a5dc96152403f202c2691441c474d911ce
|
|
| MD5 |
ffe51de8ec58ae3a127243655115494c
|
|
| BLAKE2b-256 |
f9cfc18c8eb251d8265d2fe25c9439063cd77dc078ef7d7d0ebc1ac0fbf63bc8
|