Install & Compatibility
Where this runs
tested against v0.13.1.dev0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 21.9MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.6s · import 0.500s · 49MB
35MB installed
● package 35MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
metadata_store
✓ from ml_metadata.metadata_store import metadata_store
✗ import ml_metadata
Top-level import does not expose the store; must use submodule
MetadataStore
✓ from ml_metadata.proto import metadata_store_pb2
✗ from ml_metadata import MetadataStore
MetadataStore is a protobuf message, not a direct class
Initialize a fake in-memory MLMD store to verify installation.
import ml_metadata as mlmd
from ml_metadata.metadata_store import metadata_store
from ml_metadata.proto import metadata_store_pb2
connection_config = metadata_store_pb2.ConnectionConfig()
connection_config.fake_database.SetInParent()
store = metadata_store.MetadataStore(connection_config)
print('ML Metadata store initialized successfully')
Upgrade
Version history
1.21.0latest on PyPI · released Jun 9, 2026
Audit
Dependencies
protobufrequiredRequired for serialization