pqi


Namepqi JSON
Version 3.0.0 PyPI version JSON
download
home_pagehttps://github.com/yhangf/PyQuickInstall
SummaryFast switching PyPi mirror image source
upload_time2023-04-10 11:50:29
maintainer
docs_urlNone
authorHangfengYang
requires_python
licenseMIT
keywords python、pypi source、terminal
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ```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": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python\u3001PyPi source\u3001terminal",
    "author": "HangfengYang",
    "author_email": "yhf5fhy@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/3b/b6/a9d7a0974266bd98d912e035be323b2a25195959ecec32d1cd24a514ba81/pqi-3.0.0.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": "3.0.0",
    "split_keywords": [
        "python\u3001pypi",
        "source\u3001terminal"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2e4caae675d2b4480e79b914d23a0dc6a5f39f0ca8ea4ae43c9ff7361a3b194f",
                "md5": "d26cf590b56794eaa8bb4054ead0a1a4",
                "sha256": "9956a0991c02d87c12314b75f0b20655f1f298371ba22db6b771a9c3714a6547"
            },
            "downloads": -1,
            "filename": "pqi-3.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d26cf590b56794eaa8bb4054ead0a1a4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 5290,
            "upload_time": "2023-04-10T11:50:26",
            "upload_time_iso_8601": "2023-04-10T11:50:26.851360Z",
            "url": "https://files.pythonhosted.org/packages/2e/4c/aae675d2b4480e79b914d23a0dc6a5f39f0ca8ea4ae43c9ff7361a3b194f/pqi-3.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3bb6a9d7a0974266bd98d912e035be323b2a25195959ecec32d1cd24a514ba81",
                "md5": "898fae3a703c0485d06cd9704d1ba6ee",
                "sha256": "27325ff879759967bfafd8e53c3e1454ba53118a8fa69bfa88695dc50f909dcf"
            },
            "downloads": -1,
            "filename": "pqi-3.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "898fae3a703c0485d06cd9704d1ba6ee",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4747,
            "upload_time": "2023-04-10T11:50:29",
            "upload_time_iso_8601": "2023-04-10T11:50:29.071360Z",
            "url": "https://files.pythonhosted.org/packages/3b/b6/a9d7a0974266bd98d912e035be323b2a25195959ecec32d1cd24a514ba81/pqi-3.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-10 11:50:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "yhangf",
    "github_project": "PyQuickInstall",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pqi"
}
        
Elapsed time: 0.05238s