skillfed

tensorflow-metadata

Library and standards for schema and statistics.

tensorflow-metadata v1.21.0 3.1M downloads/30d#2,760 on PyPI110
Permissive license Apache 2.0 Active released

What it is and what it does

TensorFlow Metadata is a library for defining and working with machine learning metadata in a standardized way. It provides protocol buffer-based representations for three key artifacts: schemas that describe the structure of tabular data (such as TensorFlow Examples), summary statistics computed over datasets, and problem statements that quantify model objectives. These representations can be created manually or generated automatically during data analysis workflows.

The library is designed to integrate with TensorFlow and TFX (TensorFlow Extended) pipelines, where metadata is consumed for data validation (checking that incoming data matches expected schemas), exploration (understanding dataset characteristics), and transformation (preparing data for model training). It sits at the intersection of data engineering and machine learning, providing a common language for describing data properties that both automated systems and human analysts need to understand.

Use it for:

  • Define and validate schemas for tabular datasets before feeding them into TensorFlow training pipelines
  • Generate and store summary statistics about training datasets for data drift detection and monitoring
  • Document data requirements and constraints as part of a TFX workflow for reproducibility
  • Automate data exploration by programmatically inspecting schema and statistics representations
  • Share standardized metadata definitions across teams working on the same machine learning projects

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides standard schema, statistics, and problem statement representations for machine learning metadata that can be used with TensorFlow for data validation, exploration, and transformation.

Yes, if you are building machine learning pipelines with TensorFlow or TFX and need standardized metadata representations for schemas and statistics. The package is actively maintained, has no known vulnerabilities, low installation friction, and a permissive license. It is most valuable in team environments or complex pipelines where metadata standardization aids reproducibility and data governance; less critical for simple single-script experiments.

Install

tensorflow-metadata on PyPI

pip

pip install tensorflow-metadata

uv

uv add tensorflow-metadata

poetry

poetry add tensorflow-metadata

Installing tensorflow-metadata

Before you install

Low friction installation with three lightweight runtime dependencies (absl-py, protobuf, googleapis-common-protos). Active maintenance with a recent release 66 days ago and ongoing repository activity.

License in practice

Apache 2.0 permissive license allows use in commercial and open-source projects with minimal restrictions; you must include a copy of the license and state significant changes.

Quickstart

pip install tensorflow-metadata

import tensorflow_metadata as tfmd
from tensorflow_metadata.proto import schema_pb2

schema = schema_pb2.Schema()

Requires Python 3.10 or later (3.10, 3.11, 3.12, or 3.13)

Verify before relying

  • Whether the package works with TensorFlow versions other than those in its own dependency tree
  • Whether summary statistics generation supports all common data types and distributions
  • Whether schema validation performance scales to very large datasets

Package facts

License Apache 2.0 (permissive)
Python support supports the current Python release (<4,>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 3 — absl-py, protobuf, googleapis-common-protos
Maintenance actively maintained — 66 days since the last release
Last repo commit
First released
Downloads 3,087,649/month — #2,760 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: tensorflow_metadata-1.21.0-py3-none-any.whl

Keywords: tensorflow, metadata, tfx

Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: EducationIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Scientific/Engineering :: MathematicsTopic :: Software DevelopmentTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python Modules

Tags

tensorflow metadata schemaml data validationdataset statistics representationtfx metadata librarytabular data schemamachine learning data standardstensorflow data exploration
tensorflowdata-validationml-metadata

More Software Development packages