datasets
HuggingFace community-driven open-source library of datasets
Install
datasets on PyPI
pip
pip install datasetsuv
uv add datasetspoetry
poetry add datasetsPackage facts
| License | Apache 2.0 (permissive) |
| Python support | supports the current Python release (>=3.10.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 14 — filelock, numpy, pyarrow, dill, pandas, requests, httpx, tqdm, xxhash, multiprocess, fsspec, huggingface-hub, packaging, pyyaml |
| Maintenance | actively maintained — 16 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: datasets-5.0.1-py3-none-any.whl
Keywords: datasets, machine, learning, datasets
About datasets
from the package's own PyPI description — quoted content, verbatim
<p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://huggingface.co/datasets/huggingface/documentation-images/raw/main/datasets-logo-dark.svg"> <source media="(prefers-color-scheme: light)" srcset="https://huggingface.co/datasets/huggingface/documentation-images/raw/main/datasets-logo-light.svg"> <img alt="Hugging Face Datasets Library" src="https://huggingface.co/datasets/huggingface/documentation-images/raw/main/datasets-logo-light.svg" width="352" height="59" style="max-width: 100%;"> </picture> <br/> <br/> </p>
<p align="center"> <a href="https://github.com/huggingface/datasets/actions/workflows/ci.yml?query=branch%3Amain"><img alt="Build" src="https://github.com/huggingface/datasets/actions/workflows/ci.yml/badge.svg?branch=main"></a> <a href="https://github.com/huggingface/datasets/blob/main/LICENSE"><img alt="GitHub" src="https://img.shields.io/github/license/huggingface/datasets.svg?color=blue"></a> <a href="https://huggingface.co/docs/datasets/index.html"><img alt="Documentation"...
Read as markdown · JSON record · Source repository · Homepage
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Datasets provides one-line loading and efficient preprocessing of thousands of public datasets from the Hugging Face Hub, with native support for multiple formats (CSV, JSON, Parquet, Arrow, etc.) and multi-modal data (text, audio, image, video, PDF, medical imaging).
Low friction: pure Python wheel with 14 well-established runtime dependencies including numpy, pyarrow, pandas, and requests. Actively maintained with last commit 2026-08-12 and strong community backing.
Apache 2.0 permissive license allows commercial and private use with minimal restrictions; you must include a copy of the license and state significant changes, but derivative works and redistribution are permitted.
Usage
pip install datasets
from datasets import load_dataset
squad = load_dataset('rajpurkar/squad')
processed = squad.map(lambda x: {'length': len(x['context'])})
Requires Python >=3.10.0; datasets are fetched from Hugging Face Hub (network access needed for first load).
Verdict: Production-stable, actively maintained library with zero known vulnerabilities and permissive Apache 2.0 licensing. Low install friction and broad format/modality support make it the standard choice for dataset loading in ML workflows. Active development and recent releases confirm ongoing support.
Needs verification
- Whether streaming mode achieves claimed performance improvements with Xet backend in typical use cases
- Performance characteristics and memory overhead when processing very large datasets with multiprocessing
- Actual compatibility with Python 3.13 and 3.14 beyond classifier declarations
Similar packages
permissive · top 1,000 on PyPI
huggingface-hubpermissive · top 100 on PyPI
transformerspermissive · top 1,000 on PyPI
torchvisionpermissive · top 1,000 on PyPI
duckdbpermissive · top 1,000 on PyPI
swebenchpermissive · top 1,000 on PyPI
tensorboardpermissive · top 1,000 on PyPI
hf-xetpermissive · top 1,000 on PyPI
deltalakepermissive · top 1,000 on PyPI
tokenizerspermissive · top 1,000 on PyPI