Name | chpip JSON |
Version |
0.3.0
JSON |
| download |
home_page | https://github.com/Prodesire/chpip |
Summary | A tool to manage the base URL of the Python package index. |
upload_time | 2023-02-05 15:22:56 |
maintainer | |
docs_url | None |
author | Prodesire |
requires_python | |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
|
# chpip
[![PyPI version](https://badge.fury.io/py/chpip.svg)](https://badge.fury.io/py/chpip)
[![PyPI Supported Python Versions](https://img.shields.io/pypi/pyversions/chpip.svg)](https://pypi.python.org/pypi/chpip/)
[![Run Tests](https://github.com/Prodesire/chpip/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/Prodesire/chpip/actions/workflows/tests.yml)
A tool to manage the base URL of the Python package index.
## Installation
```bash
$ pip install chpip
```
## Usage
### Set pip index URL
Set the base URL of the Python package index with name.
```bash
$ chpip set -n ustc -i https://mirrors.ustc.edu.cn/pypi/web/simple
```
For more information about the options, please refer to the `chpip set` command.
```bash
$ chpip set --help
Usage: chpip set [OPTIONS]
Options:
-n, --name TEXT Name of the Python package index. [required]
-i, --index-url TEXT Base URL of the Python Package Index. This should
point to a repository compliant with PEP 503 (the
simple repository API) or a local directory laid out
in the same format. [required]
--help Show this message and exit.
```
### Change pip index URL
Change the base URL of the Python package index without name which means switching between the two indexes in turn.
```bash
$ chpip
Change Python package index to `ustc` successful.
$ chpip
Change Python package index to `default` successful.
```
Change the base URL of the Python package index with name.
```bash
$ chpip -n ustc
Change Python package index to `ustc` successful.
```
### Show pip index URLs
Show all base URLs of the Python package index. Current index is marked with `*`.
```bash
$ chpip show
default (https://pypi.org/simple)
* ustc (https://mirrors.ustc.edu.cn/pypi/web/simple)
```
### List commonly used pip index URLs
List the commonly used URLs of the Python package index, which can be set by executing the `chpip set` command.
```bash
$ chpip list
aliyun (https://mirrors.aliyun.com/pypi/simple)
douban (https://pypi.doubanio.com/simple)
netease (https://mirrors.163.com/pypi/simple)
pypi (https://pypi.org/simple)
tencent (https://mirrors.cloud.tencent.com/pypi/simple)
tsinghua (https://pypi.tuna.tsinghua.edu.cn/simple)
ustc (http://pypi.mirrors.ustc.edu.cn/simple)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/Prodesire/chpip",
"name": "chpip",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Prodesire",
"author_email": "wangbinxin001@126.com",
"download_url": "https://files.pythonhosted.org/packages/4d/07/454599a4e8f0666ea600c8d3667ecb54df5bcbaeb73ecda28f419a643e0c/chpip-0.3.0.tar.gz",
"platform": null,
"description": "# chpip\n\n[![PyPI version](https://badge.fury.io/py/chpip.svg)](https://badge.fury.io/py/chpip)\n[![PyPI Supported Python Versions](https://img.shields.io/pypi/pyversions/chpip.svg)](https://pypi.python.org/pypi/chpip/)\n[![Run Tests](https://github.com/Prodesire/chpip/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/Prodesire/chpip/actions/workflows/tests.yml)\n\nA tool to manage the base URL of the Python package index.\n\n## Installation\n\n```bash\n$ pip install chpip\n```\n\n## Usage\n\n### Set pip index URL\n\nSet the base URL of the Python package index with name.\n\n```bash\n$ chpip set -n ustc -i https://mirrors.ustc.edu.cn/pypi/web/simple\n```\n\nFor more information about the options, please refer to the `chpip set` command.\n\n```bash\n$ chpip set --help\nUsage: chpip set [OPTIONS]\n\nOptions:\n -n, --name TEXT Name of the Python package index. [required]\n -i, --index-url TEXT Base URL of the Python Package Index. This should\n point to a repository compliant with PEP 503 (the\n simple repository API) or a local directory laid out\n in the same format. [required]\n --help Show this message and exit.\n```\n\n### Change pip index URL\n\nChange the base URL of the Python package index without name which means switching between the two indexes in turn.\n\n```bash\n$ chpip\nChange Python package index to `ustc` successful.\n$ chpip\nChange Python package index to `default` successful.\n```\n\nChange the base URL of the Python package index with name.\n\n```bash\n$ chpip -n ustc\nChange Python package index to `ustc` successful.\n```\n\n### Show pip index URLs\n\nShow all base URLs of the Python package index. Current index is marked with `*`.\n\n```bash\n$ chpip show\n default (https://pypi.org/simple)\n* ustc (https://mirrors.ustc.edu.cn/pypi/web/simple)\n```\n\n### List commonly used pip index URLs\n\nList the commonly used URLs of the Python package index, which can be set by executing the `chpip set` command.\n\n```bash\n$ chpip list\n aliyun (https://mirrors.aliyun.com/pypi/simple)\n douban (https://pypi.doubanio.com/simple)\n netease (https://mirrors.163.com/pypi/simple)\n pypi (https://pypi.org/simple)\n tencent (https://mirrors.cloud.tencent.com/pypi/simple)\n tsinghua (https://pypi.tuna.tsinghua.edu.cn/simple)\n ustc (http://pypi.mirrors.ustc.edu.cn/simple)\n```\n\n",
"bugtrack_url": null,
"license": "",
"summary": "A tool to manage the base URL of the Python package index.",
"version": "0.3.0",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4d07454599a4e8f0666ea600c8d3667ecb54df5bcbaeb73ecda28f419a643e0c",
"md5": "b0c987a0464d5b52ecee8cc98ab2803f",
"sha256": "356d71e7553d1b89b14f7066e998760e2b374e2a37faabb5962c482fe326665b"
},
"downloads": -1,
"filename": "chpip-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "b0c987a0464d5b52ecee8cc98ab2803f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 9017,
"upload_time": "2023-02-05T15:22:56",
"upload_time_iso_8601": "2023-02-05T15:22:56.790302Z",
"url": "https://files.pythonhosted.org/packages/4d/07/454599a4e8f0666ea600c8d3667ecb54df5bcbaeb73ecda28f419a643e0c/chpip-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-02-05 15:22:56",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "Prodesire",
"github_project": "chpip",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"tox": true,
"lcname": "chpip"
}