tensorflow-io
TensorFlow IO
What it is and what it does
TensorFlow I/O is an extension library that adds file system and data format support to TensorFlow beyond its built-in capabilities. It enables direct access to remote datasets via HTTP/HTTPS without requiring local download, automatic decompression of compressed files, and integration with cloud storage and specialized data formats. The library is designed to work seamlessly with tf.data.Dataset pipelines and Keras workflows.
The package is primarily used to simplify data loading in machine learning workflows by eliminating the need to manually download and preprocess datasets. It handles URL-based access, format detection, and decompression transparently, allowing developers to pass remote file URLs directly to data loading APIs. It depends on tensorflow-io-gcs-filesystem for Google Cloud Storage support.
Use it for:
- Load MNIST, CIFAR, or other benchmark datasets directly from remote URLs without local storage.
- Stream data from HTTP/HTTPS endpoints in production ML pipelines.
- Access datasets stored in Google Cloud Storage with automatic filesystem handling.
- Automatically decompress gzip and other compressed formats during data loading.
- Integrate remote data sources into tf.data.Dataset pipelines for training.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Extends TensorFlow with support for file systems and data formats not built into TensorFlow, including HTTP/HTTPS access and automatic decompression for remote datasets.
Yes, if you use TensorFlow 2.16.x and need to load datasets from remote sources or work with file formats beyond TensorFlow's built-in support. The medium install friction is manageable given the precompiled wheels for common platforms. No known security vulnerabilities and active maintenance make it a safe choice. Install only if you have a specific need for extended I/O capabilities; it is not required for standard TensorFlow workflows.
Install
tensorflow-io on PyPI
pip
pip install tensorflow-iouv
uv add tensorflow-iopoetry
poetry add tensorflow-ioInstalling tensorflow-io
Before you install
Medium install friction due to precompiled wheels for multiple Python versions (3.9–3.12) and architectures (x86_64, ARM64, macOS, Linux). Requires TensorFlow 2.16.x for version 0.37.1. Active maintenance with recent commits as of June 2026.
License in practice
Licensed under Apache License (permissive), allowing commercial and private use without restriction.
Quickstart
pip install tensorflow-io
import tensorflow_io as tfio
# Load MNIST dataset directly from URL
dataset_url = "https://storage.googleapis.com/cvdf-datasets/mnist/"
d_train = tfio.IODataset.from_mnist(
dataset_url + "train-images-idx3-ubyte.gz",
dataset_url + "train-labels-idx1-ubyte.gz"
)
d_train = d_train.shuffle(buffer_size=1024).batch(32)
Requires TensorFlow 2.16.x; Python version must be 3.7–3.12; tensorflow-io-gcs-filesystem is a runtime dependency.
Verify before relying
- Whether all supported file systems and formats are documented in the official API reference.
- Performance characteristics when streaming large remote datasets over HTTP/HTTPS.
- Compatibility with TensorFlow versions outside the stated 2.16.x range for 0.37.1.
Package facts
| License | not declared (permissive) |
| Python support | capped below the current Python release (<3.13,>=3.7) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 1 — tensorflow-io-gcs-filesystem |
| Maintenance | actively maintained — 774 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 356,674/month — #7,281 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: tensorflow_io-0.37.1-cp310-cp310-macosx_10_14_x86_64.whl; tensorflow_io-0.37.1-cp310-cp310-macosx_12_0_arm64.whl; tensorflow_io-0.37.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; tensorflow_io-0.37.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; tensorflow_io-0.37.1-cp311-cp311-macosx_10_14_x86_64.whl; tensorflow_io-0.37.1-cp311-cp311-macosx_12_0_arm64.whl; tensorflow_io-0.37.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; tensorflow_io-0.37.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; tensorflow_io-0.37.1-cp312-cp312-macosx_10_14_x86_64.whl; tensorflow_io-0.37.1-cp312-cp312-macosx_12_0_arm64.whl; tensorflow_io-0.37.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; tensorflow_io-0.37.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; tensorflow_io-0.37.1-cp39-cp39-macosx_10_14_x86_64.whl; tensorflow_io-0.37.1-cp39-cp39-macosx_12_0_arm64.whl; tensorflow_io-0.37.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; tensorflow_io-0.37.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Keywords: tensorflow, io, machine, learning
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
tensorflow-io-gcs-filesystemProvides Google Cloud Storage filesystem…
permissive · top 5,000 on PyPI
tensorflow-datasetsProvides access to many public datasets as…
permissive · top 5,000 on PyPI
tfx-bsltfx_bsl provides shared libraries and utilities…
permissive · top 15,000 on PyPI
tensorflow-transformTensorFlow Transform preprocesses data with…
permissive · top 15,000 on PyPI
tensorflow-data-validationTensorFlow Data Validation (TFDV) computes…
permissive · top 15,000 on PyPI
tfds-nightlyProvides a library of ready-to-use public…
permissive · top 15,000 on PyPI
tensorboard-data-serverProvides fast data loading and serving for…
permissive · top 5,000 on PyPI
tensorboardTensorBoard is a web-based visualization suite…
permissive · top 1,000 on PyPI
tensorflow-cpuTensorFlow CPU provides a machine learning and…
permissive · top 5,000 on PyPI
tf-nightlytf-nightly provides nightly builds of…
permissive · top 15,000 on PyPI