A wrapper for pip download.
Project description
pip-download is a tool which can be used to download python projects and their dependencies listed on pypi’s download files page. If you run the pip-download command to download one project on a Linux platform, packages end with .whl and can be directly installed on a Windows and a macOS platform will also be downloaded. In that way, you can use these downloaded packages to serve for a minimal pypi sever(like pypiserver on your company internal network.
At first, it uses pip download xxx command to download packages of the project xxx to a temp dir. Then it unpacks these downloaded packages’ name and version to download all packages of the project xxx. These downloaded packages include packages end with .whl built on the Linux, Windows, macOS platform and the source packages end with .tar.gz or .zip .
Installation
pip-download is distributed on PyPI and is available on Linux/macOS and Windows and supports Python 3.5+. You can simply install pip-download as below:
$ pip install pip-download
However, it’s a better choice to use a virtual environment:
$ python -m venv venv
# On Windows:
$ .\venv\Scripts\activate
# On Linux:
$ .venv/bin/activate
$ pip install pip-download
virtualenv is also a good choice.
Usage
After installation, you can use pip-download to download python projects and its dependencies.
$ pip-download flask
$ pip-download -r requirements.txt
$ pip-download hatch -d /tmp/
License
pip-download is distributed under the terms of both
at your option.
Credits
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
Hashes for pip_download-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e632e06508a320f2327034a56447e7fc6b50939aae5e5d14c1831f1936a8469 |
|
MD5 | 3562e923bc8a12854712eb78854875b0 |
|
BLAKE2b-256 | c51a15b0aa680bee81038160defb5da84be829deca7f8ecb5362e399bdd648e6 |