Metadata-Version: 2.1
Name: chpip
Version: 0.1.1
Summary: A tool to manage the base URL of the Python package index.
Home-page: https://github.com/Prodesire/chpip
Author: Prodesire
Author-email: wangbinxin001@126.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: Implementation
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Software Development :: Libraries
Description-Content-Type: text/markdown

# 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
Change Python package index to `ustc` successful.
```

