Skip to main content

NPM Package Downloader

Project description

Download packages from NPM for private npm servers such as verdaccio and sinopia

  • Python 3.5+ only

Installation

Install using pip:

$ pip install npmdownloader

Usage

Downloading using the CLI:

$ python -m npmdownloader -f [PACKAGE_FILE_LIST] -o [DOWNLOAD_DIR] -c [NUM_OF_WORKER_PROCESSES]

Downloading a package using code:

from npmdownloader import NpmPackageDownloader

downloader = NpmPackageDownloader('out_dir')
# Download a package and its depedencies as tarballs
# if a package tarball already exists, the download will be skipped
downloader.download('react', version='15.4.1')

Downloading multiple packages using code:

from npmdownloader import MultiPackageDownloader

downloader = MultiPackageDownloader('packages_list.txt', 'out_dir', workers_count=4)

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

npmdownloader-1.2.1.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

npmdownloader-1.2.1-py2.py3-none-any.whl (8.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file npmdownloader-1.2.1.tar.gz.

File metadata

  • Download URL: npmdownloader-1.2.1.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.3

File hashes

Hashes for npmdownloader-1.2.1.tar.gz
Algorithm Hash digest
SHA256 070d8bc93153b43aef8681ed2b0b70165bd5ac2db38fe2c2ff8183d4a778e661
MD5 d2d0ebeee3abb13b324788fbb0e2d1d9
BLAKE2b-256 775fb60cfdea08b8d3d1cab1eb72d51386bf035d689cda3f9065ba722744c2ae

See more details on using hashes here.

Provenance

File details

Details for the file npmdownloader-1.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: npmdownloader-1.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.3

File hashes

Hashes for npmdownloader-1.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d8ae42e8344d8dcb83b02f6e4c9970a34c89ab00d01dd7726e89649df81f2c2c
MD5 d70ecf80395584634727963d89c4d717
BLAKE2b-256 9a1b41a87690819515239324bd975d02757ad426ec262a90b24e0356574fcff3

See more details on using hashes here.

Provenance

Supported by

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