huanyuan


Namehuanyuan JSON
Version 3.0.2 PyPI version JSON
download
home_pagehttps://gitee.com/qsbye/python-huanyuan
SummaryFast switching PyPi mirror image source
upload_time2023-05-26 18:05:52
maintainer
docs_urlNone
authorOriginal:HangfengYang,Edited by qsbye
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
    ▌                                                                           j
    ▌                                                                           j
    ▌                                                                           j
    Γ           ▐███Γ        ▄██▓p                  ▄▄                          j
    Γ           ╫███─       ▄████                 └████   ▐██████████████████████
    Γ           ████       ▓███████████µ            ████  ╟████▀▀▀▀▀▀█████▀▀▀▀▀▀▐
    Γ           ████     ,█████▀▀▀▀████▀            ╙████ ████⌐      ████       j
    Γ       ██████████▌ ▄████▀    ████▀              ╟███▀████  ██████████████▄ j
    Γ       ██████████▄█████,,,,▄████▄                   ]████ ]████▀▀▀▀▀▀▀███▌ j
    Γ          ████    ╠████████████████▄       .▄██▌    ╟███▌ ╟███       j███▌ j
    Γ          ████    ╟███▀▀▀████▀▀▀███▌        ╙████   ████Γ ███████████████  j
    Γ         ▐███▌    ████   ███▌  ▐███▌         ╙███▌  ████  ███████████████  j
    Γ         ╟██████  ████  ▐███▌  ╟███           ╟███▌ ████  ███▌       ████  j
    Γ        ,████████ ███▌  ╟███   ████            █▀╙─▐███▌ ▐██████████████▌  j
    Γ     ▓████████▀└ ▐███⌐  ████   ███▌                ████⌐ ╫██████████████⌐  j
    Γ     ╙███████  ▐████████████████████⌐         ███▓ ████        ████        j
    Γ      └ ╟███▌  ╫████████████████████         ╟███▌▐███▌  ███▌ ▐███▌ ███µ   j
    Γ        ████⌐         ██████                 ████ ████  ▓███  ████⌐ ███▌   j
    Γ        ████        ╓███████▌               ████⌐▐████ ▐███▌  ████  ███▌   j
    Γ       ]████       ▓████ ╙███▌             ▄███▌ ████¬╓███▌  ]████  ████   j
    Γ   ,▄▄ ▐███▌    ,▓████▀   ╚████           ▐████ ▐███▌╔████   ╟███▌  ╟███   j
    Γ   ███▌████⌐ ╓▄█████▀      ╙████▓        ▄████ ]████Φ████▄▄█,████⌐  ▐███µ  j
    Γ   ╙██████▀  █████▀          ▀████▀     á████  ████Γ  └╙ ███████▀    ▀▀▀`  j
    Γ     ╙▀▀╙     ╙▀               ▀▀`       '╙▀   ╙▀▀▌       ╙▀█▀▀`           j
    Γ                                                                           j
    Γ                                                                           j
                                                    ---- by qsbye
```
# <p align="center">huanyuan: a terminal tools for Python:globe_with_meridians:</p>

<p align="center">
    <a href="https://github.com/yhangf/PyQuickInstall/blob/master/LICENSE">
        <!--<img src="picture/flat.svg">-->
        </a>
    <a href="https://pypi.python.org/pypi/pqi">
        <img src="./picture/pqi.svg">
        </a>
    <a href="https://github.com/python/cpython">
        <img src="./picture/language-python-ff69b4.svg">
        </a>
    <a href="https://github.com/yhangf/PyQuickInstall">
    <img src="./picture/star.svg">
        </a>
    <a href="https://github.com/yhangf/PyQuickInstall">
    <img src="./picture/fork.svg">
        </a>
</p>
由于国内通过pip下载python包的速度真的很慢,很容易因为超时而失败,而pqi可以把PyPi源迅速切换为国内源tuna, douban, aliyun, ustc从而大大加快python包的安装速度,提速效果见下图所示。huanyuan是对pqi的修改版本,添加类似`python -m HUANYUAN.huanyuan`的模块方式访问模块,解决某些情况下安装pqi后在命令行显示无此命令或者修改指定版本Python的下载源.

![](./picture/db.png)

## 怎么使用(兼容py2/py3/linux/windows/MacOS)

### 1.安装
#### 方法一(推荐)

```
>>> pip install -i https://pypi.org/simple huanyuan
```

#### 方法二
```
>>> git clone https://gitee.com/qsbye/python-huanyuan.git
>>> python3 setup.py install
```


### 2. 命令行输入 `huanyuan` 回车
```
>>> huanyuan
Usage:
  huanyuan ls
  huanyuan use <name>
  huanyuan show
  huanyuan add <name> <url>
  huanyuan remove <name>
  huanyuan (-h | --help)
  huanyuan (-v | --version)
Options:
  -h --help        Show this screen.
  -v --version     Show version.
```
* 列举所有支持的PyPi源
```
>>> huanyuan ls
```

* 改变PyPi源
```
>>> huanyuan use <name>
或
>>> python -m HUANYUAN.huanyuan use douban
```
例子,比如运行`huanyuan use tuna`即把当前PyPi源改为清华的PyPi源

* 显示当前PyPi源
```
>>> huanyuan show
```

* 添加新的pip源(如添加USTC源)
```
>>> huanyuan add ustc https://mirrors.ustc.edu.cn/pypi/web/simple
```

* 移除pip源(如官方PyPi源)
```
>>> huanyuan remove pypi
```

### 3. 升级到最新版`huanyuan`
```
>>> pip install --upgrade huanyuan
```

## LICENSE
[MIT](./LICENSE)

            

Raw data

            {
    "_id": null,
    "home_page": "https://gitee.com/qsbye/python-huanyuan",
    "name": "huanyuan",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python\u3001PyPi source\u3001terminal",
    "author": "Original:HangfengYang,Edited by qsbye",
    "author_email": "yhf5fhy@gmail.com,2557877116@qq.com",
    "download_url": "",
    "platform": null,
    "description": "```SHELL\n                                         _ __      _,.---._      .=-.-.\n                                      .-`.' ,`.  ,-.' - ,  `.   /==/_ /\n                                     /==/, -   \\/==/ ,    -  \\ |==|, |  \n                                    |==| _ .=. |==| - .=.  ,  ||==|  |  \n                                    |==| , '=',|==|  : ;=:  - ||==|- |  \n                                    |==|-  '..'|==|,  '='  ,  ||==| ,|  \n                                    |==|,  |    \\==\\ _   -    ;|==|- |  \n                                    /==/ - |     '.='.  ,  ; -\\/==/. /  \n                                    `--`---'       `--`--'' `--`--`-`   \n\n                                                    ---- by Hangfeng Yang\n    \u258c                                                                           j\n    \u258c                                                                           j\n    \u258c                                                                           j\n    \u0393           \u2590\u2588\u2588\u2588\u0393        \u2584\u2588\u2588\u2593p                  \u2584\u2584                          j\n    \u0393           \u256b\u2588\u2588\u2588\u2500       \u2584\u2588\u2588\u2588\u2588                 \u2514\u2588\u2588\u2588\u2588   \u2590\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\n    \u0393           \u2588\u2588\u2588\u2588       \u2593\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u00b5            \u2588\u2588\u2588\u2588  \u255f\u2588\u2588\u2588\u2588\u2580\u2580\u2580\u2580\u2580\u2580\u2588\u2588\u2588\u2588\u2588\u2580\u2580\u2580\u2580\u2580\u2580\u2590\n    \u0393           \u2588\u2588\u2588\u2588     ,\u2588\u2588\u2588\u2588\u2588\u2580\u2580\u2580\u2580\u2588\u2588\u2588\u2588\u2580            \u2559\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2310      \u2588\u2588\u2588\u2588       j\n    \u0393       \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258c \u2584\u2588\u2588\u2588\u2588\u2580    \u2588\u2588\u2588\u2588\u2580              \u255f\u2588\u2588\u2588\u2580\u2588\u2588\u2588\u2588  \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2584 j\n    \u0393       \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2584\u2588\u2588\u2588\u2588\u2588,,,,\u2584\u2588\u2588\u2588\u2588\u2584                   ]\u2588\u2588\u2588\u2588 ]\u2588\u2588\u2588\u2588\u2580\u2580\u2580\u2580\u2580\u2580\u2580\u2588\u2588\u2588\u258c j\n    \u0393          \u2588\u2588\u2588\u2588    \u2560\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2584       .\u2584\u2588\u2588\u258c    \u255f\u2588\u2588\u2588\u258c \u255f\u2588\u2588\u2588       j\u2588\u2588\u2588\u258c j\n    \u0393          \u2588\u2588\u2588\u2588    \u255f\u2588\u2588\u2588\u2580\u2580\u2580\u2588\u2588\u2588\u2588\u2580\u2580\u2580\u2588\u2588\u2588\u258c        \u2559\u2588\u2588\u2588\u2588   \u2588\u2588\u2588\u2588\u0393 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588  j\n    \u0393         \u2590\u2588\u2588\u2588\u258c    \u2588\u2588\u2588\u2588   \u2588\u2588\u2588\u258c  \u2590\u2588\u2588\u2588\u258c         \u2559\u2588\u2588\u2588\u258c  \u2588\u2588\u2588\u2588  \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588  j\n    \u0393         \u255f\u2588\u2588\u2588\u2588\u2588\u2588  \u2588\u2588\u2588\u2588  \u2590\u2588\u2588\u2588\u258c  \u255f\u2588\u2588\u2588           \u255f\u2588\u2588\u2588\u258c \u2588\u2588\u2588\u2588  \u2588\u2588\u2588\u258c       \u2588\u2588\u2588\u2588  j\n    \u0393        ,\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u258c  \u255f\u2588\u2588\u2588   \u2588\u2588\u2588\u2588            \u2588\u2580\u2559\u2500\u2590\u2588\u2588\u2588\u258c \u2590\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258c  j\n    \u0393     \u2593\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2580\u2514 \u2590\u2588\u2588\u2588\u2310  \u2588\u2588\u2588\u2588   \u2588\u2588\u2588\u258c                \u2588\u2588\u2588\u2588\u2310 \u256b\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2310  j\n    \u0393     \u2559\u2588\u2588\u2588\u2588\u2588\u2588\u2588  \u2590\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2310         \u2588\u2588\u2588\u2593 \u2588\u2588\u2588\u2588        \u2588\u2588\u2588\u2588        j\n    \u0393      \u2514 \u255f\u2588\u2588\u2588\u258c  \u256b\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588         \u255f\u2588\u2588\u2588\u258c\u2590\u2588\u2588\u2588\u258c  \u2588\u2588\u2588\u258c \u2590\u2588\u2588\u2588\u258c \u2588\u2588\u2588\u00b5   j\n    \u0393        \u2588\u2588\u2588\u2588\u2310         \u2588\u2588\u2588\u2588\u2588\u2588                 \u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588  \u2593\u2588\u2588\u2588  \u2588\u2588\u2588\u2588\u2310 \u2588\u2588\u2588\u258c   j\n    \u0393        \u2588\u2588\u2588\u2588        \u2553\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u258c               \u2588\u2588\u2588\u2588\u2310\u2590\u2588\u2588\u2588\u2588 \u2590\u2588\u2588\u2588\u258c  \u2588\u2588\u2588\u2588  \u2588\u2588\u2588\u258c   j\n    \u0393       ]\u2588\u2588\u2588\u2588       \u2593\u2588\u2588\u2588\u2588 \u2559\u2588\u2588\u2588\u258c             \u2584\u2588\u2588\u2588\u258c \u2588\u2588\u2588\u2588\u00ac\u2553\u2588\u2588\u2588\u258c  ]\u2588\u2588\u2588\u2588  \u2588\u2588\u2588\u2588   j\n    \u0393   ,\u2584\u2584 \u2590\u2588\u2588\u2588\u258c    ,\u2593\u2588\u2588\u2588\u2588\u2580   \u255a\u2588\u2588\u2588\u2588           \u2590\u2588\u2588\u2588\u2588 \u2590\u2588\u2588\u2588\u258c\u2554\u2588\u2588\u2588\u2588   \u255f\u2588\u2588\u2588\u258c  \u255f\u2588\u2588\u2588   j\n    \u0393   \u2588\u2588\u2588\u258c\u2588\u2588\u2588\u2588\u2310 \u2553\u2584\u2588\u2588\u2588\u2588\u2588\u2580      \u2559\u2588\u2588\u2588\u2588\u2593        \u2584\u2588\u2588\u2588\u2588 ]\u2588\u2588\u2588\u2588\u03a6\u2588\u2588\u2588\u2588\u2584\u2584\u2588,\u2588\u2588\u2588\u2588\u2310  \u2590\u2588\u2588\u2588\u00b5  j\n    \u0393   \u2559\u2588\u2588\u2588\u2588\u2588\u2588\u2580  \u2588\u2588\u2588\u2588\u2588\u2580          \u2580\u2588\u2588\u2588\u2588\u2580     \u00e1\u2588\u2588\u2588\u2588  \u2588\u2588\u2588\u2588\u0393  \u2514\u2559 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2580    \u2580\u2580\u2580`  j\n    \u0393     \u2559\u2580\u2580\u2559     \u2559\u2580               \u2580\u2580`       '\u2559\u2580   \u2559\u2580\u2580\u258c       \u2559\u2580\u2588\u2580\u2580`           j\n    \u0393                                                                           j\n    \u0393                                                                           j\n                                                    ---- by qsbye\n```\n# <p align=\"center\">huanyuan: a terminal tools for Python:globe_with_meridians:</p>\n\n<p align=\"center\">\n    <a href=\"https://github.com/yhangf/PyQuickInstall/blob/master/LICENSE\">\n        <!--<img src=\"picture/flat.svg\">-->\n        </a>\n    <a href=\"https://pypi.python.org/pypi/pqi\">\n        <img src=\"./picture/pqi.svg\">\n        </a>\n    <a href=\"https://github.com/python/cpython\">\n        <img src=\"./picture/language-python-ff69b4.svg\">\n        </a>\n    <a href=\"https://github.com/yhangf/PyQuickInstall\">\n    <img src=\"./picture/star.svg\">\n        </a>\n    <a href=\"https://github.com/yhangf/PyQuickInstall\">\n    <img src=\"./picture/fork.svg\">\n        </a>\n</p>\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\u3002huanyuan\u662f\u5bf9pqi\u7684\u4fee\u6539\u7248\u672c,\u6dfb\u52a0\u7c7b\u4f3c`python -m HUANYUAN.huanyuan`\u7684\u6a21\u5757\u65b9\u5f0f\u8bbf\u95ee\u6a21\u5757,\u89e3\u51b3\u67d0\u4e9b\u60c5\u51b5\u4e0b\u5b89\u88c5pqi\u540e\u5728\u547d\u4ee4\u884c\u663e\u793a\u65e0\u6b64\u547d\u4ee4\u6216\u8005\u4fee\u6539\u6307\u5b9a\u7248\u672cPython\u7684\u4e0b\u8f7d\u6e90.\n\n![](./picture/db.png)\n\n## \u600e\u4e48\u4f7f\u7528(\u517c\u5bb9py2/py3/linux/windows/MacOS)\n\n### 1.\u5b89\u88c5\n#### \u65b9\u6cd5\u4e00\uff08\u63a8\u8350\uff09\n\n```\n>>> pip install -i https://pypi.org/simple huanyuan\n```\n\n#### \u65b9\u6cd5\u4e8c\n```\n>>> git clone https://gitee.com/qsbye/python-huanyuan.git\n>>> python3 setup.py install\n```\n\n\n### 2. \u547d\u4ee4\u884c\u8f93\u5165 `huanyuan` \u56de\u8f66\n```\n>>> huanyuan\nUsage:\n  huanyuan ls\n  huanyuan use <name>\n  huanyuan show\n  huanyuan add <name> <url>\n  huanyuan remove <name>\n  huanyuan (-h | --help)\n  huanyuan (-v | --version)\nOptions:\n  -h --help        Show this screen.\n  -v --version     Show version.\n```\n* \u5217\u4e3e\u6240\u6709\u652f\u6301\u7684PyPi\u6e90\n```\n>>> huanyuan ls\n```\n\n* \u6539\u53d8PyPi\u6e90\n```\n>>> huanyuan use <name>\n\u6216\n>>> python -m HUANYUAN.huanyuan use douban\n```\n\u4f8b\u5b50\uff0c\u6bd4\u5982\u8fd0\u884c`huanyuan use tuna`\u5373\u628a\u5f53\u524dPyPi\u6e90\u6539\u4e3a\u6e05\u534e\u7684PyPi\u6e90\n\n* \u663e\u793a\u5f53\u524dPyPi\u6e90\n```\n>>> huanyuan show\n```\n\n* \u6dfb\u52a0\u65b0\u7684pip\u6e90(\u5982\u6dfb\u52a0USTC\u6e90)\n```\n>>> huanyuan add ustc https://mirrors.ustc.edu.cn/pypi/web/simple\n```\n\n* \u79fb\u9664pip\u6e90\uff08\u5982\u5b98\u65b9PyPi\u6e90\uff09\n```\n>>> huanyuan remove pypi\n```\n\n### 3. \u5347\u7ea7\u5230\u6700\u65b0\u7248`huanyuan`\n```\n>>> pip install --upgrade huanyuan\n```\n\n## LICENSE\n[MIT](./LICENSE)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Fast switching PyPi mirror image source",
    "version": "3.0.2",
    "project_urls": {
        "Homepage": "https://gitee.com/qsbye/python-huanyuan"
    },
    "split_keywords": [
        "python\u3001pypi",
        "source\u3001terminal"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "aa573df98eca496dcf6c2ffa50effc0e11c2140ad9a9ba9634b113744288caf0",
                "md5": "d1153ab0d3391f5f8f1af8664c10cd10",
                "sha256": "48374dbe205a0a82131ad453e1d2143a245c13e1b2c83c98934c04a955533cc8"
            },
            "downloads": -1,
            "filename": "huanyuan-3.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d1153ab0d3391f5f8f1af8664c10cd10",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 34602,
            "upload_time": "2023-05-26T18:05:52",
            "upload_time_iso_8601": "2023-05-26T18:05:52.991060Z",
            "url": "https://files.pythonhosted.org/packages/aa/57/3df98eca496dcf6c2ffa50effc0e11c2140ad9a9ba9634b113744288caf0/huanyuan-3.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-26 18:05:52",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "huanyuan"
}
        
Elapsed time: 0.07684s