pooch
A friend to fetch your data files
What it is and what it does
Pooch is a Python library that handles the tedious parts of downloading and caching data files. It sits between your code and the network, fetching files only when needed, storing them locally, and verifying they haven't been corrupted or replaced. It supports HTTP, FTP, and DOI-based downloads from repositories like Zenodo and figshare, with built-in hash verification to ensure reproducibility.
For scientists and researchers, Pooch automates the distribution of sample datasets—you can host data on a repository and let your package download it automatically, ensuring everyone using your code has the same version of the data. For package developers, it provides a clean API to manage versioned data caches without forcing users to manually download files or deal with urllib and requests directly.
Use it for:
- Download sample datasets for documentation or tutorials without embedding large files in your package repository.
- Distribute versioned data files with your Python package, automatically fetching them on first use.
- Verify downloaded files against known hashes to detect corruption or tampering.
- Host data on Zenodo or figshare and reference it by DOI instead of managing URLs.
- Implement reproducible research workflows where colleagues run the same code and get identical data.
- Cache remote data locally to avoid re-downloading during repeated script runs or development iterations.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Pooch downloads files from HTTP, FTP, and data repositories (Zenodo, figshare), caches them locally, and verifies integrity via hash checking—eliminating manual file management and urllib boilerplate.
Yes. Pooch is production-stable (Development Status 5), actively maintained, has no known vulnerabilities, and is already trusted by major scientific Python projects (SciPy, scikit-image, xarray, napari, and others). Install it if you need to download, cache, and verify data files in any Python project—it eliminates boilerplate and adds reproducibility with minimal overhead.
Install
pooch on PyPI
pip
pip install poochuv
uv add poochpoetry
poetry add poochInstalling pooch
Before you install
Low friction: pure Python with only three runtime dependencies (platformdirs, packaging, requests). Active maintenance with last commit 2026-08-04 and no known vulnerabilities.
License in practice
BSD-3-Clause is permissive; you can use, modify, and distribute Pooch with minimal restrictions, making it suitable for both open-source and proprietary projects.
Quickstart
import pooch
# Download and cache a file, verifying its hash
fname = pooch.retrieve(
url="https://example.com/data.csv",
known_hash="md5:a7332aa6e69c77d49d7fb54b764caa82"
)
# For package developers, create a managed cache
GOODBOY = pooch.create(
path=pooch.os_cache("mypackage"),
base_url="https://github.com/myproject/data/",
registry={"file.csv": "sha256hash"}
)
fname = GOODBOY.fetch("file.csv")
Verify before relying
- Whether custom post-processors (unzip/decompress) are included in the base package or require additional dependencies.
- Performance characteristics when managing large numbers of files or very large individual files.
- Whether FTP support is fully tested and maintained or primarily HTTP-focused.
Package facts
| License | BSD-3-Clause (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — platformdirs, packaging, requests |
| Maintenance | actively maintained — 196 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 16,960,613/month — #1,134 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pooch-1.9.0-py3-none-any.whl
Keywords: data, download, caching, http
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
checksumdirComputes a single hash digest of all file…
permissive · top 15,000 on PyPI
parfiveParfive downloads multiple files in parallel…
unclear · top 15,000 on PyPI
fastdownloadDownloads, verifies, and extracts archives from…
permissive · top 15,000 on PyPI
filehashCalculates and verifies file checksums and…
permissive · top 15,000 on PyPI
dirhashComputes a single hash value for an entire…
permissive · top 5,000 on PyPI
django-sriGenerates Subresource Integrity (SRI) hashes…
permissive · top 15,000 on PyPI
setuptools-downloadA setuptools plugin that downloads external…
permissive · top 5,000 on PyPI
open-radar-dataProvides a registry and download utility for…
permissive · top 15,000 on PyPI
rosettasciioRosettaSciIO reads and writes scientific data…
copyleft · top 15,000 on PyPI