A toolkit to manager the fastest mirror of various tools, such as pip, npm, composer and etc.
We are going to support to manage the mirror of following tools:
- pip
- npm
- composer
- homebrew
- linuxbrew
- golang
- docker
- ubuntu
- centos
- julia
- etc.
# pip install -i https://pypi.tuna.tsinghua.edu.cn/simple umm
pip install ummpip install -U ummummor
umm --ehlpOutput
Usage: umm [OPTIONS] COMMAND [ARGS]...
A toolkit to manager the fastest mirror of various tools, such as pip,
npm, composer and etc.
Options:
--help Show this message and exit.
Commands:
npm Manage npm mirrors.
pip Manage pip mirrors.
v Show umm version.
umm pipor
umm pip --ehlpOutput
Usage: umm pip [OPTIONS] COMMAND [ARGS]...
Manage pip mirrors.
Options:
--help Show this message and exit.
Commands:
ls List all available mirrors
now Show current mirror.
use Use the given mirror.
umm pip lsOutput
o https://pypi.python.org/simple/
tuna https://pypi.tuna.tsinghua.edu.cn/simple
douban http://pypi.douban.com/simple/
aliyun https://mirrors.aliyun.com/pypi/simple/
ustc https://mirrors.ustc.edu.cn/pypi/web/simple
For example, use the tuna mirror.
umm pip use tunaumm pip nowOutput
tuna https://pypi.tuna.tsinghua.edu.cn/simple
umm npmor
umm npm --ehlpOutput
Usage: umm npm [OPTIONS] COMMAND [ARGS]...
Manage npm mirrors.
Options:
--help Show this message and exit.
Commands:
ls List all available mirrors.
now Show current using mirror.
use Use the given mirror.
umm npm lsOutput
[npm] name url
------------------------------------------------------------
* o https://registry.npmjs.org/
cnpm http://r.cnpmjs.org/
taobao https://registry.npm.taobao.org/
nj https://registry.nodejitsu.com/
npmMirror https://skimdb.npmjs.com/registry/
edunpm http://registry.enpmjs.org/
For example, use the tabao mirror.
umm npm use taobaoumm npm nowOutput
taobao https://registry.npm.taobao.org/
Once your developed a while and want to test the umm, your have two ways to test:
- install this package in your local via:
pip install --editable .- or, directly run the python file via:
python -m ummMake sure you have installed pytest
cd umm/
export PYTHONPATH=src
pytest