tensorflow-metadata
Library and standards for schema and statistics.
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-metadatauv
uv add tensorflow-metadatapoetry
poetry add tensorflow-metadataInstalling 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
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-data-validationTensorFlow Data Validation (TFDV) computes…
permissive · top 15,000 on PyPI
tensorflow-datasetsProvides access to many public datasets as…
permissive · top 5,000 on PyPI
tensorflow-transformTensorFlow Transform preprocesses data with…
permissive · top 15,000 on PyPI
tfds-nightlyProvides a library of ready-to-use public…
permissive · top 15,000 on PyPI
tfx-bsltfx_bsl provides shared libraries and utilities…
permissive · top 15,000 on PyPI
tensorflow-addonsTensorFlow Addons provides experimental…
permissive · top 5,000 on PyPI
tf-kerasTF-Keras is the pure-TensorFlow implementation…
permissive · top 5,000 on PyPI
facets-overviewGenerates summary statistics for dataset…
permissive · top 15,000 on PyPI
parquet-metadataParquet-metadata is a command-line tool that…
permissive · top 15,000 on PyPI
tf-keras-nightlyTF-Keras is a pure-TensorFlow implementation of…
permissive · top 5,000 on PyPI