Skip to main content

A wrapper for pip download in offline scenario.

Project description

# pip-download: A wrapper useful in offline scenario

[简体中文]( https://github.com/youngquan/pip-download/blob/master/README_zh_CN.md)

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](https://pypi.org/project/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]( https://pypi.org ) and is available on Linux/macOS and Windows and supports Python 3.6+. You can simply install pip-download as below:

`bash $ pip install pip-download `

However, it’s a better choice to use a virtual environment:

`bash $ python -m venv venv # On Windows: $ .\venv\Scripts\activate # On Linux: $ .venv/bin/activate $ pip install pip-download `

[virtualenv](https://virtualenv.pypa.io/en/latest/) is also a good choice.

## Usage

After installation, you can use pip-download to download python projects and its dependencies.

`bash $ pip-download flask $ pip-download -r requirements.txt $ pip-download hatch -d /tmp/ `

## Credits

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.0.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

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

pip_download-0.1.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pip-download-0.1.0.tar.gz
  • Upload date:
  • Size: 10.6 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.0.tar.gz
Algorithm Hash digest
SHA256 1d0e4b9f13a2d9cacb5f23fd0c003cd5dafade407095276f9f3b912b5c679876
MD5 828c96116de902ee3e59498d2ef7f21e
BLAKE2b-256 dda30bc672cdee7d0faae0a1ce78df77325ba20f2d4e75034da4496f93fb5810

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pip_download-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a03b5a0c9ac828352e195ffa3bf322413f82c9fe634a7feec5508db9f9326715
MD5 8e3fa37074ddd699f2d2d3b0ed2bf069
BLAKE2b-256 081768ca95db840b104b01727301cb198188b97f5ecf56e2f7abb118458722a1

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