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
pipbinary. - Injects a mirror only for network-facing subcommands like
install,download, andwheel. - Preserves user intent when
--index-url,--extra-index-url,--find-links, or--no-indexis already provided. - Supports both
qpip tsinghua install numpyandqpip --mirror douban install pandas. - Works with
python -m qpipand provides a--dry-runmode 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d8db29542089f522d3ecfa10ce88a13f6463ccd24e56f6cb56519de9390dca3
|
|
| MD5 |
eced35d7e09f4813f3f77a9ca72bb0eb
|
|
| BLAKE2b-256 |
9f2f41ed4506ee6dede7638defc7c4857f531b6aa97a52904c3872d3690545f0
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10f71d7ab24c2bb480b78a752a05f82bebe214e3b79c1995905990ea2421d744
|
|
| MD5 |
b612379d97ba4f03634c593c44c5e1fb
|
|
| BLAKE2b-256 |
f9e69779c90430577e114b5cbfd193d435bbce7ed941daf40aef3dcf3eab3d68
|