{"id":15873387,"url":"https://github.com/prodesire/chpip","last_synced_at":"2025-07-26T14:32:23.989Z","repository":{"id":62562089,"uuid":"454722775","full_name":"Prodesire/chpip","owner":"Prodesire","description":"A tool to manage the base URL of the Python package index.","archived":false,"fork":false,"pushed_at":"2023-02-05T15:22:11.000Z","size":21,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-27T05:02:02.723Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Prodesire.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-02T10:05:54.000Z","updated_at":"2023-02-02T06:44:29.000Z","dependencies_parsed_at":"2023-02-19T00:30:35.946Z","dependency_job_id":null,"html_url":"https://github.com/Prodesire/chpip","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prodesire%2Fchpip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prodesire%2Fchpip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prodesire%2Fchpip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prodesire%2Fchpip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Prodesire","download_url":"https://codeload.github.com/Prodesire/chpip/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243802941,"owners_count":20350316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-06T01:02:05.874Z","updated_at":"2025-03-16T04:30:39.915Z","avatar_url":"https://github.com/Prodesire.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 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```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprodesire%2Fchpip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprodesire%2Fchpip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprodesire%2Fchpip/lists"}