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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: npmdownloader-1.2.0.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.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.1

File hashes

Hashes for npmdownloader-1.2.0.tar.gz
Algorithm Hash digest
SHA256 69819bce461e5ae11ef3756aed170daff01b44f82d67b758028244280d8b2f3c
MD5 e9a7f348d191f9d3b5268625a9a9f5d2
BLAKE2b-256 84501d65889638bb42725d8bdec939f4396e8f2737f1a42925b76b6557ccf65f

See more details on using hashes here.

Provenance

File details

Details for the file npmdownloader-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: npmdownloader-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.1

File hashes

Hashes for npmdownloader-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 87e4c371827f33b1931b0c3a9c3b4e6699481bfdc052ab5408a5cfd3700f3a0e
MD5 9c652e2686785a9c9fe600b5333e35ef
BLAKE2b-256 c168936a52cd756cb2bd6ad03186375dfb05a4e4019ca20bf3f9d57d8421395b

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