Skip to main content

A fast pip tool with domestic mirror sources

Project description

qpip

qpip is a thin wrapper around python -m pip that can automatically use a faster mirror for package downloads.

Features

  • Keeps using the current Python interpreter instead of relying on a separate pip binary.
  • Injects a mirror only for network-facing subcommands like install, download, and wheel.
  • Preserves user intent when --index-url, --extra-index-url, --find-links, or --no-index is already provided.
  • Supports both qpip tsinghua install numpy and qpip --mirror douban install pandas.
  • Works with python -m qpip and provides a --dry-run mode for inspection.

Installation

pip install qpip

For local development:

python -m build
pip install dist/qpip-0.1.0-py3-none-any.whl

Usage

qpip install requests
qpip tsinghua install numpy
qpip --mirror douban install pandas
qpip --dry-run install fastapi
qpip --list-mirrors
python -m qpip install rich

If you need to pass an option that starts with - directly to pip, place -- before the pip arguments:

qpip -- --version

Default mirror

qpip uses ali by default. You can override it with the QPIP_DEFAULT_MIRROR environment variable:

set QPIP_DEFAULT_MIRROR=tsinghua
qpip install httpx

Supported mirrors

  • ali: https://mirrors.aliyun.com/pypi/simple/
  • tsinghua: https://pypi.tuna.tsinghua.edu.cn/simple/
  • douban: https://pypi.doubanio.com/simple/

Development

python -m unittest discover -s tests -v
python -m build

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

qpip-0.1.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

qpip-0.1.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file qpip-0.1.0.tar.gz.

File metadata

  • Download URL: qpip-0.1.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for qpip-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5d8db29542089f522d3ecfa10ce88a13f6463ccd24e56f6cb56519de9390dca3
MD5 eced35d7e09f4813f3f77a9ca72bb0eb
BLAKE2b-256 9f2f41ed4506ee6dede7638defc7c4857f531b6aa97a52904c3872d3690545f0

See more details on using hashes here.

File details

Details for the file qpip-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: qpip-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for qpip-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 10f71d7ab24c2bb480b78a752a05f82bebe214e3b79c1995905990ea2421d744
MD5 b612379d97ba4f03634c593c44c5e1fb
BLAKE2b-256 f9e69779c90430577e114b5cbfd193d435bbce7ed941daf40aef3dcf3eab3d68

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