Skip to main content

A library for maintaining metadata for artifacts.

Project description

ML Metadata

Python PyPI

ML Metadata (MLMD) is a library for recording and retrieving metadata associated with ML developer and data scientist workflows.

NOTE: ML Metadata may be backwards incompatible before version 1.0.

Getting Started

For more background on MLMD and instructions on using it, see the getting started guide

Installing from PyPI

The recommended way to install ML Metadata is to use the PyPI package:

pip install ml-metadata

Then import the relevant packages:

from ml_metadata import metadata_store
from ml_metadata.proto import metadata_store_pb2

Nightly Packages

ML Metadata (MLMD) also hosts nightly packages at https://pypi-nightly.tensorflow.org on Google Cloud. To install the latest nightly package, please use the following command:

pip install -i https://pypi-nightly.tensorflow.org/simple ml-metadata

Installing with Docker

This is the recommended way to build ML Metadata under Linux, and is continuously tested at Google.

Please first install docker and docker-compose by following the directions: docker; docker-compose.

Then, run the following at the project root:

DOCKER_SERVICE=manylinux-python${PY_VERSION}
sudo docker-compose build ${DOCKER_SERVICE}
sudo docker-compose run ${DOCKER_SERVICE}

where PY_VERSION is one of {36, 37, 38}.

A wheel will be produced under dist/, and installed as follows:

pip install dist/*.whl

Installing from source

1. Prerequisites

To compile and use ML Metadata, you need to set up some prerequisites.

Install Bazel

If Bazel is not installed on your system, install it now by following these directions.

Install cmake

If cmake is not installed on your system, install it now by following these directions.

2. Clone ML Metadata repository

git clone https://github.com/google/ml-metadata
cd ml-metadata

Note that these instructions will install the latest master branch of ML Metadata. If you want to install a specific branch (such as a release branch), pass -b <branchname> to the git clone command.

3. Build the pip package

ML Metadata uses Bazel to build the pip package from source:

python setup.py bdist_wheel

You can find the generated .whl file in the dist subdirectory.

4. Install the pip package

pip install dist/*.whl

5.(Optional) Build the grpc server

ML Metadata uses Bazel to build the c++ binary from source:

bazel build -c opt --define grpc_no_ares=true  //ml_metadata/metadata_store:metadata_store_server

Supported platforms

MLMD is built and tested on the following 64-bit operating systems:

  • macOS 10.14.6 (Mojave) or later.
  • Ubuntu 16.04 or later.
  • Windows 7 or later.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ml_metadata-0.26.0-cp38-cp38-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.8Windows x86-64

ml_metadata-0.26.0-cp38-cp38-manylinux2010_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

ml_metadata-0.26.0-cp38-cp38-macosx_10_9_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

ml_metadata-0.26.0-cp37-cp37m-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.7mWindows x86-64

ml_metadata-0.26.0-cp37-cp37m-manylinux2010_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

ml_metadata-0.26.0-cp37-cp37m-macosx_10_9_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

ml_metadata-0.26.0-cp36-cp36m-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.6mWindows x86-64

ml_metadata-0.26.0-cp36-cp36m-manylinux2010_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

ml_metadata-0.26.0-cp36-cp36m-macosx_10_9_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

Details for the file ml_metadata-0.26.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: ml_metadata-0.26.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 2.4 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

File hashes

Hashes for ml_metadata-0.26.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 89538a4453aabd5a828cad19588b91c174f2146c4da5fc1c988dc0f11888f6a9
MD5 b2f4e312ae4cceb0722aae94765e16ba
BLAKE2b-256 6db5c43c26d6463e89374012cc701dc5625d57a7b80531c3e2b5ad8d14915555

See more details on using hashes here.

File details

Details for the file ml_metadata-0.26.0-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: ml_metadata-0.26.0-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

File hashes

Hashes for ml_metadata-0.26.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 22d46f3e00671e0c5ce6ce8aaa0f58097a43f1da84c9e77fcbae0fbe4d78818e
MD5 a1cbae4e83ae86f9b4693c10fed85359
BLAKE2b-256 b611ff5a135ec56f5a7cb9141078f393c5d60d3f2e9449d07ef9e5fc29204add

See more details on using hashes here.

File details

Details for the file ml_metadata-0.26.0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: ml_metadata-0.26.0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 5.3 MB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.2

File hashes

Hashes for ml_metadata-0.26.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 770d72e8da4389665795bafcd271cd0fc0cdcfa421791598722331eced519dfc
MD5 a4b48dbec11b0e01e383a0a621d2fff7
BLAKE2b-256 05c7490ba3e925922d5f6cef0bb28d48d2d0200566e60366024ae139661de0fd

See more details on using hashes here.

File details

Details for the file ml_metadata-0.26.0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: ml_metadata-0.26.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 2.4 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.0

File hashes

Hashes for ml_metadata-0.26.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 5bf9230969c83cf7487e0b374ea1756ed454fb0eb0d4ad7f2a4595c20da2978d
MD5 300ac81f85e14818e1d242427d857708
BLAKE2b-256 e506757f4b75cd9ac6e1020d719b1068a666e543e2ec80cea41250deeacc967b

See more details on using hashes here.

File details

Details for the file ml_metadata-0.26.0-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: ml_metadata-0.26.0-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.6

File hashes

Hashes for ml_metadata-0.26.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5be86596c6cd5f10d9ebaf0ee076946e283297424531ea0c8ae75d6ee0a0b21e
MD5 473bf613ab0a16015f6bae931d653954
BLAKE2b-256 01cbe6321afca3126feb0d3d24344c5229ebaebd91e94fc9761f392342a0ac17

See more details on using hashes here.

File details

Details for the file ml_metadata-0.26.0-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: ml_metadata-0.26.0-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 5.3 MB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.3

File hashes

Hashes for ml_metadata-0.26.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4b4aeff948786a81047c26868e7531e077f996b9e0a74037122831934e2cbabe
MD5 e1fd6351c317e1ab98bb7fadc5c86d3d
BLAKE2b-256 dc3f4314225164dd6f4beffeffa1b90e84391e53ae38d74104a5f89ba33a4ee2

See more details on using hashes here.

File details

Details for the file ml_metadata-0.26.0-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: ml_metadata-0.26.0-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 2.4 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.1

File hashes

Hashes for ml_metadata-0.26.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 ca10370e87cc2f7abeb46e90ca7fd07c041ddc6f2e08265aa4ed890a44b66d67
MD5 4d57a4bd7a5d887714ceedf1874a697a
BLAKE2b-256 91ada5ee84a1a32b5f2d4f33dbc2c68f8530373abf6d899ebe28f53efc226ecf

See more details on using hashes here.

File details

Details for the file ml_metadata-0.26.0-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: ml_metadata-0.26.0-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.10

File hashes

Hashes for ml_metadata-0.26.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 cb6d849f2bb342919e20d1a627db75831ba67ab0f2796543ba07852814c7ff07
MD5 b95d64243f1a5dd98ccb3ba142cf96da
BLAKE2b-256 1b7b37c56cb56e3d42084ac68f929140f32cc45c5dab4c0d05d7278ac48cffd5

See more details on using hashes here.

File details

Details for the file ml_metadata-0.26.0-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: ml_metadata-0.26.0-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 5.3 MB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.8

File hashes

Hashes for ml_metadata-0.26.0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7be4e696f598580c72399dfbfc5421cb2c48db3b5dde26a417f7fd9b12f06fdd
MD5 23fc9e46788eec85043a266f7c710310
BLAKE2b-256 151ba6967f50f79026bb2502b02b6114c89abbc6ffe378f7651ede655537193d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page