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.2.1.tar.gz
(12.1 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
File details
Details for the file xpip.mirror-0.2.1.tar.gz.
File metadata
- Download URL: xpip.mirror-0.2.1.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
082802b05e3eb1904673fb1ec146549514153b2282386f384bfa6279328089fb
|
|
| MD5 |
03f1e16406073b209d907033505cc9f5
|
|
| BLAKE2b-256 |
d2119c63392d1c7f4561b4c6c1c84e29afaffa757321d5f4c9d312aac2fae655
|
File details
Details for the file xpip.mirror-0.2.1-py2.py3-none-any.whl.
File metadata
- Download URL: xpip.mirror-0.2.1-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.0.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58ade5301300e0058382a7bf33e5558dafae3bb11142a9c5d73d1cedf670ecd9
|
|
| MD5 |
474554f2980e53b6cc3b659ede63ad9c
|
|
| BLAKE2b-256 |
3f3bdbb3e1a987a4386b1df71e09763f3589635f1f8dc3fab8bacb7e270de8e1
|