A toolkit to manager the fastest mirror of various tools, such as pip, npm, composer and etc.
Project description
umm: yoUr Mirror Manager
A toolkit to manager the fastest mirror of various tools, such as pip, npm, composer and etc.
[TOC]
Features
We are going to support to manage the mirror of following tools:
- pip
- npm
- composer
- homebrew
- ubuntu
- centos
- etc.
Installation
pip install umm
Usage
Show umm
help
umm
or
umm --ehlp
Output
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.
Manage pip
Show umm pip
help
umm pip
or
umm pip --ehlp
Output
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.
List all available mirrors of pip
umm pip ls
Output
pypi 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
Use the given mirror for pip
For example, use the tuna mirror.
umm pip use tuna
Show current mirror of pip
umm pip now
Output
tuna https://pypi.tuna.tsinghua.edu.cn/simple
Manage npm
Show umm npm
help
umm npm
or
umm npm --ehlp
Output
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.
List all available mirrors of npm
umm npm ls
Output
[npm] name url
------------------------------------------------------------
* npm 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/
Use the given mirror for npm
For example, use the tabao mirror.
umm npm use taobao
Show current mirror of npm
umm npm now
Output
taobao https://registry.npm.taobao.org/
How to test in local
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 src/cli.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
umm-0.2.2.tar.gz
(7.0 kB
view details)
Built Distribution
File details
Details for the file umm-0.2.2.tar.gz
.
File metadata
- Download URL: umm-0.2.2.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.20.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98e541bbe156a8031a162f55fb3e27aed84915a378352a0cfa6f43a62e9b8f2d |
|
MD5 | f35128f31c8c6223349eadfe53184e34 |
|
BLAKE2b-256 | 4cd4cae4a6d2571c5705a534df64f79d569ea6b2c85e99eebc6dea8e78f0983d |
File details
Details for the file umm-0.2.2-py2.py3-none-any.whl
.
File metadata
- Download URL: umm-0.2.2-py2.py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.20.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9602d6eab22418b3701004e5ed3c533b950d52947b165960871be7dcfedc7b13 |
|
MD5 | 8acdd364be3f266401477ce2c5271472 |
|
BLAKE2b-256 | b1c699d8646261e48f91fd5adc8829b22136c4054a4c0288fdc4aa84653d335a |