Skip to main content

A wrapper for pip download in offline scenario.

Project description

pip-download: A wrapper useful in offline scenario

简体中文

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/

Credits

  • All the people who work on Click
  • All the people involved in the project hatch

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-download-0.1.2.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

pip_download-0.1.2-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file pip-download-0.1.2.tar.gz.

File metadata

  • Download URL: pip-download-0.1.2.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1

File hashes

Hashes for pip-download-0.1.2.tar.gz
Algorithm Hash digest
SHA256 cbd1d8a83c318b423772bf88ae0709e58480aa069f8a2686f6bdeadc74459380
MD5 115895cd1ae6f7934e6d0e18d90c6ef2
BLAKE2b-256 5436914d49fd22839e217e9aff4ba8b8301a9627750902757b6ce0c42d014fd0

See more details on using hashes here.

File details

Details for the file pip_download-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pip_download-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1

File hashes

Hashes for pip_download-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b9a4bb35ba6920c4d31d22ce0eca647a72b4e721400123da9f8a97bb5bfef55d
MD5 df52767e853750652ab1320e03a30e87
BLAKE2b-256 2a85314e55c781fa3b870304fdc820c7f1eac6b7ca427385afe44468797ed129

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page