skillfed

setuptools-download

setuptools plugin to download external files

setuptools-download v1.1.0 1.7M downloads/30d#3,679 on PyPI8
Permissive license MIT Active released

What it is and what it does

setuptools-download is a setuptools plugin that automates the download and integration of external files into a Python package during installation. It runs at build time, fetching files from URLs and verifying them against SHA256 checksums before inclusion. The plugin supports platform-specific downloads via PEP 508 markers (checking OS, platform, and architecture), allowing you to bundle different binaries or data for Linux, macOS, and Windows in a single package definition. It can also extract archives (tar or zip) and place specific files from them into your package.

The plugin is configured declaratively through setuptools metadata (setup.cfg or pyproject.toml), making it suitable for projects that need to distribute pre-built binaries, large datasets, or platform-specific tools alongside Python code without committing those files to version control.

Use it for:

  • Bundle platform-specific compiled binaries (e.g., different CPU architectures) with a Python package, downloading only what matches the target system.
  • Include large data files or models in a package by downloading them at install time rather than storing them in the repository.
  • Distribute a tool that wraps native executables, downloading the correct binary for the user's OS and architecture automatically.
  • Fetch and extract portions of a remote archive (e.g., a specific directory from a tarball) into your package structure during setup.
  • Verify file integrity during installation by enforcing SHA256 checksums on all downloaded content.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A setuptools plugin that downloads external files during package setup, with support for checksums, platform-specific selection, and archive extraction.

Yes, if you need to download external files during package installation with integrity verification and platform-specific selection. The low install friction, active maintenance, permissive license, and zero known vulnerabilities make it a safe choice. Not necessary if your package is pure Python or already handles file distribution through other means.

Install

setuptools-download on PyPI

pip

pip install setuptools-download

uv

uv add setuptools-download

poetry

poetry add setuptools-download

Installing setuptools-download

Before you install

Low friction: pure Python wheel with only setuptools as a runtime dependency. Actively maintained with recent commits; last release was about a year ago.

License in practice

MIT license permits unrestricted use, modification, and distribution with minimal restrictions—suitable for any project type.

Quickstart

# In setup.cfg or pyproject.toml:
# [options]
# setup_requires = setuptools-download
#
# [setuptools_download]
# download_data_files =
#     [path/to/file.txt]
#     url = https://example.com/file.txt
#     sha256 = <hash>

# Then run: pip install .

Requires Python >=3.8 and setuptools to be available during the build phase.

Verify before relying

  • Whether the plugin works with modern setuptools versions and PEP 517/518 build backends.
  • Performance characteristics when downloading large files or many files in parallel.
  • Behavior when network connectivity is unavailable during setup.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies 1 — setuptools
Maintenance actively maintained — 768 days since the last release
Last repo commit
First released
Downloads 1,654,916/month — #3,679 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: setuptools_download-1.1.0-py2.py3-none-any.whl

License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy

Tags

setuptools download plugindownload files during setupplatform-specific file downloadsetuptools external filessha256 checksum verificationextract tar zip in setupconditional file download
setuptools-pluginbuild-automationbinary-distribution

More Build Tools packages