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

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 {27, 35, 36, 37}.

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:

bazel run -c opt --define grpc_no_ares=true ml_metadata:build_pip_package

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.12.6 (Sierra) 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.21.2-cp37-cp37m-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.7mWindows x86-64

ml_metadata-0.21.2-cp37-cp37m-manylinux2010_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

ml_metadata-0.21.2-cp37-cp37m-macosx_10_9_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

ml_metadata-0.21.2-cp36-cp36m-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.6mWindows x86-64

ml_metadata-0.21.2-cp36-cp36m-manylinux2010_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

ml_metadata-0.21.2-cp36-cp36m-macosx_10_9_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

ml_metadata-0.21.2-cp35-cp35m-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.5mWindows x86-64

ml_metadata-0.21.2-cp35-cp35m-manylinux2010_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.5mmanylinux: glibc 2.12+ x86-64

ml_metadata-0.21.2-cp35-cp35m-macosx_10_6_intel.whl (5.2 MB view details)

Uploaded CPython 3.5mmacOS 10.6+ Intel (x86-64, i386)

ml_metadata-0.21.2-cp27-cp27mu-manylinux2010_x86_64.whl (4.9 MB view details)

Uploaded CPython 2.7mumanylinux: glibc 2.12+ x86-64

ml_metadata-0.21.2-cp27-cp27m-macosx_10_9_x86_64.whl (5.2 MB view details)

Uploaded CPython 2.7mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: ml_metadata-0.21.2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.5rc1

File hashes

Hashes for ml_metadata-0.21.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 391d35adfc0f1fe16ea8b0f90c597b3d5db246ded785fe5088bb141ace4d9764
MD5 b1ebfb0f66e5975b546e5bb44968477c
BLAKE2b-256 773423e63a5951b9ade5689e80bca19c0ca92074c39b060bf7ef673a0b8b9278

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ml_metadata-0.21.2-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.5rc1

File hashes

Hashes for ml_metadata-0.21.2-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 70aa619a5ae9492d13d36b91e6cd1f8d8282668d8d38ea9b8876167e5d484658
MD5 52adc6abcb1c70ea897b6989562a4f68
BLAKE2b-256 eadd5a079f9e8fe152bd01081ead04da93f09e0e702e937a49fb6f7a50d21e1c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ml_metadata-0.21.2-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 5.2 MB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.5rc1

File hashes

Hashes for ml_metadata-0.21.2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 33da18a8a64167477d05b782ebe59e341b84c527bc501973d9011b74c8c5280b
MD5 3d88a9206d7267f59e36e0a362e0ed93
BLAKE2b-256 8d201cf698e3b1267ee0e4bc6bfb274ce8e9552fcba54c0707b72aed8789d1be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ml_metadata-0.21.2-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.5rc1

File hashes

Hashes for ml_metadata-0.21.2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 e10ec358cd64576d59b1081976fce061842d42e536c78059e0013ba3b56f6d32
MD5 9076f91bedfd79feba79b439258db568
BLAKE2b-256 fb2a754985ee67e086aafd8cc46eda64de711f29e7d15dc3ca56c7dccecd3173

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ml_metadata-0.21.2-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.5rc1

File hashes

Hashes for ml_metadata-0.21.2-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 869330eb3b2fdcb0e4c6ce8d2c1fc8a2843eb5cb4200919f3f9934d62a4e9d1b
MD5 230097a3899304b2d303481a38c92d78
BLAKE2b-256 623da1717dd48ed7ee14670b51822f6bab14e73c3fabd641cb85354dd0d7471d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ml_metadata-0.21.2-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 5.2 MB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.5rc1

File hashes

Hashes for ml_metadata-0.21.2-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 617926e9a32d06c80bc884b77f665f1a7a4b0f98236e8c27e69f15babfb13065
MD5 1205724b8b15c3233cc2ccce3bb5e738
BLAKE2b-256 c904aadf9649d6a3b09566e9caf14381bb1be70d2647600609b63d1553b9385d

See more details on using hashes here.

File details

Details for the file ml_metadata-0.21.2-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: ml_metadata-0.21.2-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.5rc1

File hashes

Hashes for ml_metadata-0.21.2-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 360e151278c78c881d0b5adf4ddcae9f552769fa2ee6c76f767f057eba2e4888
MD5 a0b27d4d297571913feac9fc0f18d161
BLAKE2b-256 095315677ee240f4fcc832d75b589cfad6e2f93784dcb151f7ffa9db8300fb32

See more details on using hashes here.

File details

Details for the file ml_metadata-0.21.2-cp35-cp35m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: ml_metadata-0.21.2-cp35-cp35m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 3.5m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.5rc1

File hashes

Hashes for ml_metadata-0.21.2-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 b712a0cba25e02f69bcab6bb9586480b40c839b5a79e679c9377b24ce39d7e2d
MD5 9f5a486972b231843e5a813e4d16bff1
BLAKE2b-256 8d5edffbd00efb53dcd233f6ca6097328e546a17789b1a02e1c3cc5c12135e18

See more details on using hashes here.

File details

Details for the file ml_metadata-0.21.2-cp35-cp35m-macosx_10_6_intel.whl.

File metadata

  • Download URL: ml_metadata-0.21.2-cp35-cp35m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 5.2 MB
  • Tags: CPython 3.5m, macOS 10.6+ Intel (x86-64, i386)
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.5rc1

File hashes

Hashes for ml_metadata-0.21.2-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 71d15abd99a712568b4c86eaa7b9f0ebe9eed83868f42961f918acf11f1d9fc2
MD5 5af7e46d5f3b0bc51c49cb2ed2780b3c
BLAKE2b-256 5ed44831acbf4e5334cb8dec1df3fa3b9e2ef28c315e7de5b8276ecd4204f0b1

See more details on using hashes here.

File details

Details for the file ml_metadata-0.21.2-cp27-cp27mu-manylinux2010_x86_64.whl.

File metadata

  • Download URL: ml_metadata-0.21.2-cp27-cp27mu-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 2.7mu, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.5rc1

File hashes

Hashes for ml_metadata-0.21.2-cp27-cp27mu-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d6e6d79e7f7f467c1b010488579fa76c1bfe0e3a18c68ebb6ae0611c6b58e9bb
MD5 efcd6a27e6078954b73cc89e582f5836
BLAKE2b-256 55e0c2e5d6897e738d48fd879becc58e16d375c011035eacdedc8e33fa30079e

See more details on using hashes here.

File details

Details for the file ml_metadata-0.21.2-cp27-cp27m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: ml_metadata-0.21.2-cp27-cp27m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 5.2 MB
  • Tags: CPython 2.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.5rc1

File hashes

Hashes for ml_metadata-0.21.2-cp27-cp27m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 67d625496b4f2073d3f6f511544438231697c5bb2321f32b5496ea47a9164863
MD5 fc5d9f03799d865c8244a30c1d0260d9
BLAKE2b-256 ce1edc7e2d06708e6951e20e4d2fabdd9b1d6b0a6bc7e38a21c264fc8851b578

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