```shell
_ __ _,.---._ .=-.-.
.-`.' ,`. ,-.' - , `. /==/_ /
/==/, - \/==/ , - \ |==|, |
|==| _ .=. |==| - .=. , ||==| |
|==| , '=',|==| : ;=: - ||==|- |
|==|- '..'|==|, '=' , ||==| ,|
|==|, | \==\ _ - ;|==|- |
/==/ - | '.='. , ; -\/==/. /
`--`---' `--`--'' `--`--`-`
---- by Hangfeng Yang
```
# <p align="center">pqi: a terminal tools for Python:globe_with_meridians:</p>
<p align="center">
<a href="https://github.com/yhangf/PyQuickInstall/blob/master/LICENSE">
<img src="https://img.shields.io/cocoapods/l/EFQRCode.svg?style=flat">
</a>
<a href="https://pypi.python.org/pypi/pqi">
<img src="https://img.shields.io/pypi/v/pqi.svg">
</a>
<a href="https://github.com/python/cpython">
<img src="https://img.shields.io/badge/language-python-ff69b4.svg">
</a>
<a href="https://github.com/yhangf/PyQuickInstall">
<img src="https://img.shields.io/github/stars/yhangf/PyQuickInstall.svg?style=social&label=Star">
</a>
<a href="https://github.com/yhangf/PyQuickInstall">
<img src="https://img.shields.io/github/forks/yhangf/PyQuickInstall.svg?style=social&label=Fork">
</a>
</p>
由于国内通过pip下载python包的速度真的很慢,很容易因为超时而失败,而pqi可以把PyPi源迅速切换为国内源tuna, douban, aliyun, ustc从而大大加快python包的安装速度,提速效果见下图所示。
![](https://github.com/yhangf/PyQuickInstall/blob/master/picture/db.png)
## 怎么使用(兼容py2/py3/linux/windows/MacOS)
### 1.安装
#### 方法一(推荐)
```
>>> pip install pqi
```
#### 方法二
```
>>> git clone https://github.com/yhangf/PyQuickInstall.git
>>> python3 setup.py install
```
### 2. 命令行输入 `pqi` 回车
```
>>> pqi
Usage:
pqi ls
pqi use <name>
pqi show
pqi add <name> <url>
pqi remove <name>
pqi (-h | --help)
pqi (-v | --version)
Options:
-h --help Show this screen.
-v --version Show version.
```
* 列举所有支持的PyPi源
```
>>> pqi ls
```
* 改变PyPi源
```
>>> pqi use <name>
```
例子,比如运行`pqi use tuna`即把当前PyPi源改为清华的PyPi源
* 显示当前PyPi源
```
>>> pqi show
```
* 添加新的pip源(如添加USTC源)
```
>>> pqi add ustc https://mirrors.ustc.edu.cn/pypi/web/simple
```
* 移除pip源(如官方PyPi源)
```
>>> pqi remove pypi
```
### 3. 升级到最新版`pqi`
```
>>> pip install --upgrade pqi
```
## LICENSE
[MIT](https://github.com/yhangf/PyQuickInstall/blob/master/LICENSE)
Raw data
{
"_id": null,
"home_page": "https://github.com/yhangf/PyQuickInstall",
"name": "pqi",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "python\u3001PyPi source\u3001terminal",
"author": "HangfengYang",
"author_email": "yhf5fhy@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/a2/69/979ce9c79e8554bab5222aed9cf52ceebf2ea5671e0bf4770f51a987bfc6/pqi-4.0.2.tar.gz",
"platform": null,
"description": "```shell\r\n _ __ _,.---._ .=-.-.\r\n .-`.' ,`. ,-.' - , `. /==/_ /\r\n /==/, - \\/==/ , - \\ |==|, | \r\n |==| _ .=. |==| - .=. , ||==| | \r\n |==| , '=',|==| : ;=: - ||==|- | \r\n |==|- '..'|==|, '=' , ||==| ,| \r\n |==|, | \\==\\ _ - ;|==|- | \r\n /==/ - | '.='. , ; -\\/==/. / \r\n `--`---' `--`--'' `--`--`-` \r\n\r\n ---- by Hangfeng Yang\r\n\r\n```\r\n# <p align=\"center\">pqi: a terminal tools for Python:globe_with_meridians:</p>\r\n\r\n<p align=\"center\">\r\n <a href=\"https://github.com/yhangf/PyQuickInstall/blob/master/LICENSE\">\r\n <img src=\"https://img.shields.io/cocoapods/l/EFQRCode.svg?style=flat\">\r\n </a>\r\n <a href=\"https://pypi.python.org/pypi/pqi\">\r\n <img src=\"https://img.shields.io/pypi/v/pqi.svg\">\r\n </a>\r\n <a href=\"https://github.com/python/cpython\">\r\n <img src=\"https://img.shields.io/badge/language-python-ff69b4.svg\">\r\n </a>\r\n <a href=\"https://github.com/yhangf/PyQuickInstall\">\r\n <img src=\"https://img.shields.io/github/stars/yhangf/PyQuickInstall.svg?style=social&label=Star\">\r\n </a>\r\n <a href=\"https://github.com/yhangf/PyQuickInstall\">\r\n <img src=\"https://img.shields.io/github/forks/yhangf/PyQuickInstall.svg?style=social&label=Fork\">\r\n </a>\r\n</p>\r\n\u7531\u4e8e\u56fd\u5185\u901a\u8fc7pip\u4e0b\u8f7dpython\u5305\u7684\u901f\u5ea6\u771f\u7684\u5f88\u6162\uff0c\u5f88\u5bb9\u6613\u56e0\u4e3a\u8d85\u65f6\u800c\u5931\u8d25\uff0c\u800cpqi\u53ef\u4ee5\u628aPyPi\u6e90\u8fc5\u901f\u5207\u6362\u4e3a\u56fd\u5185\u6e90tuna, douban, aliyun, ustc\u4ece\u800c\u5927\u5927\u52a0\u5febpython\u5305\u7684\u5b89\u88c5\u901f\u5ea6\uff0c\u63d0\u901f\u6548\u679c\u89c1\u4e0b\u56fe\u6240\u793a\u3002\r\n\r\n![](https://github.com/yhangf/PyQuickInstall/blob/master/picture/db.png)\r\n\r\n## \u600e\u4e48\u4f7f\u7528(\u517c\u5bb9py2/py3/linux/windows/MacOS)\r\n\r\n### 1.\u5b89\u88c5\r\n#### \u65b9\u6cd5\u4e00\uff08\u63a8\u8350\uff09\r\n\r\n```\r\n>>> pip install pqi\r\n```\r\n\r\n#### \u65b9\u6cd5\u4e8c\r\n```\r\n>>> git clone https://github.com/yhangf/PyQuickInstall.git\r\n>>> python3 setup.py install\r\n```\r\n\r\n\r\n### 2. \u547d\u4ee4\u884c\u8f93\u5165 `pqi` \u56de\u8f66\r\n```\r\n>>> pqi\r\nUsage:\r\n pqi ls\r\n pqi use <name>\r\n pqi show\r\n pqi add <name> <url>\r\n pqi remove <name>\r\n pqi (-h | --help)\r\n pqi (-v | --version)\r\nOptions:\r\n -h --help Show this screen.\r\n -v --version Show version.\r\n```\r\n* \u5217\u4e3e\u6240\u6709\u652f\u6301\u7684PyPi\u6e90\r\n```\r\n>>> pqi ls\r\n```\r\n\r\n* \u6539\u53d8PyPi\u6e90\r\n```\r\n>>> pqi use <name>\r\n```\r\n\u4f8b\u5b50\uff0c\u6bd4\u5982\u8fd0\u884c`pqi use tuna`\u5373\u628a\u5f53\u524dPyPi\u6e90\u6539\u4e3a\u6e05\u534e\u7684PyPi\u6e90\r\n\r\n* \u663e\u793a\u5f53\u524dPyPi\u6e90\r\n```\r\n>>> pqi show\r\n```\r\n\r\n* \u6dfb\u52a0\u65b0\u7684pip\u6e90(\u5982\u6dfb\u52a0USTC\u6e90\uff09\r\n```\r\n>>> pqi add ustc https://mirrors.ustc.edu.cn/pypi/web/simple\r\n```\r\n\r\n* \u79fb\u9664pip\u6e90\uff08\u5982\u5b98\u65b9PyPi\u6e90\uff09\r\n```\r\n>>> pqi remove pypi\r\n```\r\n\r\n### 3. \u5347\u7ea7\u5230\u6700\u65b0\u7248`pqi`\r\n```\r\n>>> pip install --upgrade pqi\r\n```\r\n\r\n## LICENSE\r\n[MIT](https://github.com/yhangf/PyQuickInstall/blob/master/LICENSE)\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Fast switching PyPi mirror image source",
"version": "4.0.2",
"project_urls": {
"Homepage": "https://github.com/yhangf/PyQuickInstall"
},
"split_keywords": [
"python\u3001pypi",
"source\u3001terminal"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a269979ce9c79e8554bab5222aed9cf52ceebf2ea5671e0bf4770f51a987bfc6",
"md5": "fb8e8acaa663b89d108a1a6f157179d6",
"sha256": "dbe0b68a892a94ac91a1674fc87e1b3341794ce3973b343d0494761eee9648a9"
},
"downloads": -1,
"filename": "pqi-4.0.2.tar.gz",
"has_sig": false,
"md5_digest": "fb8e8acaa663b89d108a1a6f157179d6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4792,
"upload_time": "2024-11-21T06:58:43",
"upload_time_iso_8601": "2024-11-21T06:58:43.567693Z",
"url": "https://files.pythonhosted.org/packages/a2/69/979ce9c79e8554bab5222aed9cf52ceebf2ea5671e0bf4770f51a987bfc6/pqi-4.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-21 06:58:43",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "yhangf",
"github_project": "PyQuickInstall",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pqi"
}