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.0.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.0-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.0.tar.gz.

File metadata

  • Download URL: pip_conf_mirror-0.9.0.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.0.tar.gz
Algorithm Hash digest
SHA256 cf58076b899cbea82d7ac90535a9be4b0d55dbfd532639bafb3339ab98f6fb49
MD5 c47226bcb3a5c6eecb1042a44911a760
BLAKE2b-256 9b7e85da32a9b61e1da1ae831e8a0214b2e644473f8fcefc16772f0f1eebd0e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pip_conf_mirror-0.9.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4f674acac770324d069532c81ba6619fd98e6a8429c817ce80c9574844c8fa18
MD5 ffe634bb00bd80916e5e4985b27aaeb6
BLAKE2b-256 9fd2e07e2aaa8a007a62ac64c8d035cb949e96513d3a7db0e31aafdfba15b0b3

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