tensorflow-datasets
tensorflow/datasets is a library of datasets ready to use with TensorFlow.
What it is and what it does
TensorFlow Datasets is a library that provides standardized access to many public datasets, automatically handling download and preparation into tf.data.Dataset objects ready for training pipelines. It wraps datasets from various sources and exposes them through a simple API, letting you load data like MNIST or other benchmarks with a single function call, then chain standard TensorFlow operations like shuffle, batch, and prefetch.
The library emphasizes simplicity for standard use cases, reproducibility (all users get the same examples in the same order), and performance by following TensorFlow best practices. It has 18 runtime dependencies including numpy, pyarrow, and tensorflow-metadata, and requires Python 3.10 or later. The package is actively maintained and carries no known security vulnerabilities.
Use it for:
- Load benchmark datasets like MNIST or CIFAR for quick prototyping and model evaluation.
- Build reproducible input pipelines for training by ensuring deterministic dataset ordering across runs.
- Access a curated catalog of public datasets without manually downloading or preprocessing files.
- Integrate datasets into tf.data pipelines with standard operations like batching and prefetching.
- Prepare datasets for distributed training by leveraging TFDS's performance-optimized loading.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides access to many public datasets as tf.data.Datasets, handling download, preparation, and loading for TensorFlow workflows.
Yes. The package is actively maintained, has no known vulnerabilities, and low install friction. It solves a real problem—standardized dataset access for TensorFlow workflows—with a permissive license. Install it if you work with TensorFlow and need quick access to public datasets; skip it only if you manage datasets entirely through custom pipelines.
Install
tensorflow-datasets on PyPI
pip
pip install tensorflow-datasetsuv
uv add tensorflow-datasetspoetry
poetry add tensorflow-datasetsInstalling tensorflow-datasets
Before you install
Low install friction with a pure-Python wheel. Active maintenance (last commit 2026-07-29) and 18 runtime dependencies including numpy, pyarrow, and tensorflow-metadata. Requires Python 3.10 or later.
License in practice
Apache 2.0 permissive license. Users are responsible for determining their own permission to use each underlying dataset; the library itself is freely usable and modifiable.
Quickstart
pip install tensorflow-datasets
import tensorflow_datasets as tfds
ds = tfds.load('mnist', split='train', as_supervised=True, shuffle_files=True)
ds = ds.shuffle(1000).batch(128).prefetch(10)
Requires Python 3.10 or later and TensorFlow installed separately.
Verify before relying
- Whether all advertised datasets in the catalog are currently available and maintained.
- Performance characteristics and download speeds for large datasets.
- Compatibility with specific TensorFlow versions beyond the Python requirement.
Package facts
| License | Apache 2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 18 — absl-py, array_record, dm-tree, etils, immutabledict, numpy, promise, protobuf, psutil, pyarrow, requests, simple_parsing, tensorflow-metadata, termcolor, toml, tqdm, wrapt, importlib_resources |
| Maintenance | actively maintained — 98 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,764,589/month — #3,579 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: tensorflow_datasets-4.9.10-py3-none-any.whl
Keywords: tensorflow, machine, learning, datasets
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
cinemagoerCinemagoer retrieves and queries movie, actor,…
copyleft · top 15,000 on PyPI
opendatalabOpenDataLab Python SDK provides programmatic…
permissive · top 15,000 on PyPI
tfds-nightlyProvides a library of ready-to-use public…
permissive · top 15,000 on PyPI
seqioSeqIO builds scalable data pipelines for…
permissive · top 15,000 on PyPI
tensorflow-metadataProvides standard schema, statistics, and…
permissive · top 5,000 on PyPI
tensorboard-data-serverProvides fast data loading and serving for…
permissive · top 5,000 on PyPI
seqio-nightlySeqIO provides task-based data pipelines for…
permissive · top 15,000 on PyPI
tensorflow-ioExtends TensorFlow with support for file…
permissive · top 15,000 on PyPI
datasetsLoads and preprocesses datasets from the…
permissive · top 1,000 on PyPI
tfliteParses TensorFlow Lite (*.tflite) model files…
permissive · top 15,000 on PyPI