A wrapper for pip download in offline scenario.
Project description
pip-download: A wrapper useful in offline scenario
TODO: mofify ...
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.6+. 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:
$ source 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/
$ pip-dwonload -py cp37 ujson
$ pip-dwonload -py cp37 -p win_amd64 ujson
Also, you can put your common options in the config file, python_versions
and platform_tags
are supported now:
$ pip-download --show-config
/some-path-to/settings.json
$ vim /some-path-to/settings.json
{
"python-versions": ["cp37"],
"platform-tags": ["win_amd64"]
}
$ vim /some-path-to/settings.json
{
"python-versions": ["cp37", "cp36"],
"platform-tags": ["win_amd64", "manylinux"]
}
For more usage, use pip-download --help
.
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
File details
Details for the file aviv-pip-download-0.4.0.post0.tar.gz
.
File metadata
- Download URL: aviv-pip-download-0.4.0.post0.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c36651e1d227eabeea0c072db2ff537c62269ed7784c4396d782b7e6d2041d51 |
|
MD5 | 830818653fd181a08c2361bc2b31b83c |
|
BLAKE2b-256 | 363bae033bd8130107a4bf605f91ef513b8037604dc31629696aaa61e5d60d8c |
File details
Details for the file aviv_pip_download-0.4.0.post0-py2.py3-none-any.whl
.
File metadata
- Download URL: aviv_pip_download-0.4.0.post0-py2.py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f0b1b6c2a575c7e88498a936073f9ab7221350b81f618f3db0a80bc7e269b64 |
|
MD5 | dc062c26c6ff3158f77dbada92ea445a |
|
BLAKE2b-256 | 38e4ba84e63048883fd272bcd2437b93f68eab6c47f36f229ea5da07cd7e0a71 |