Skip to main content

Make it easy to set or change pip/pdm/uv/poetry mirrors.

Project description

PIP CONF MIRROR

Make it easy for pip/uv/pdm/poetry to change mirror

Python工具包之一行命令换源

Install

pip install pip-conf-mirror

Or:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip-conf-mirror

Or:

pipx install pip-conf-mirror

Or:

uv tool install pip-conf-mirror

Usage

pip-conf-mirror --pip qinghua  # 给pip/pipx换清华源
pip-conf-mirror --uv aliyun  # 给uv换阿里源
pip-conf-mirror --pdm tencent  # 给pdm换腾讯源
pip-conf-mirror --poetry huawei  # 给poetry换华为源
pip-conf-mirror --tool=pip douban  # 给pip/pipx换豆瓣源

给uv换好源之后,也可以这样用:

uvx pip-conf-mirror --pip qh  # 给pip更换清华源

展示可选的镜像源:

pip-conf-mirror --list
  • 注:名称为_ecs结尾的,只能用在他们自家的服务器上

From github

  • Change source of pip to mirrors.cloud.tencent.com, worked at both Linux and Windows(Run with Git Bash).
curl https://raw.githubusercontent.com/waketzheng/carstino/main/pip_conf.py|python
  • Install it from github:
pip install --user "pip-conf-mirror @git+https://github.com/waketzheng/carstino"
  • Clone source from github and run by python:
git clone https://github.com/waketzheng/carstino
# Or:
#git clone git@github.com:waketzheng/carstino.git
python carstino/pip_conf.py --pip qh

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pip_conf_mirror-0.9.1.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pip_conf_mirror-0.9.1-py2.py3-none-any.whl (13.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pip_conf_mirror-0.9.1.tar.gz.

File metadata

  • Download URL: pip_conf_mirror-0.9.1.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pip_conf_mirror-0.9.1.tar.gz
Algorithm Hash digest
SHA256 570be37b0483e756ec04223894d58dbef784588f64b38b9638ff1c6c66669562
MD5 ac5ca79251e45185002134a10a8023ab
BLAKE2b-256 1ec5387f1a94ead8bc07b6d1d7374a7b63062cdca7ae219836c3049b78ae3784

See more details on using hashes here.

File details

Details for the file pip_conf_mirror-0.9.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pip_conf_mirror-0.9.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ab1be779b99deea4d01e75adef005ed9b4e82e70c8cdfc094a4e5341897eb7aa
MD5 9bd95d988df1b8307a4b265ccea4528b
BLAKE2b-256 d7d6a670feece89b23bae1f59337e792b3c20c69cd108833d96ff223034f72bc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page