skillfed

tensorflow-io

TensorFlow IO

tensorflow-io v0.37.1 356.7K downloads/30d#7,281 on PyPI739
Permissive license Active released

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-io

uv

uv add tensorflow-io

poetry

poetry add tensorflow-io

Installing 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

Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: EducationIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Scientific/EngineeringTopic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Scientific/Engineering :: MathematicsTopic :: Software DevelopmentTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python Modules

Tags

tensorflow file system supporttensorflow io dataset formatstensorflow remote data loadingtensorflow gcs filesystemtensorflow http dataset accesstensorflow data format extensionstensorflow io utilities
tensorflow-extensiondata-loadingremote-io

More Software Development packages