Skip to main content

tfx_bsl (TFX Basic Shared Libraries) contains libraries shared by many TFX (TensorFlow eXtended) libraries and components.

Project description

TFX Basic Shared Libraries

Python PyPI

TFX Basic Shared Libraries (tfx_bsl) contains libraries shared by many TensorFlow eXtended (TFX) components.

Only symbols exported by sub-modules under tfx_bsl/public are intended for direct use by TFX users, including by standalone TFX library (e.g. TFDV, TFMA, TFT) users, TFX pipeline authors and TFX component authors. Those APIs will become stable and follow semantic versioning once tfx_bsl goes beyond 1.0.

APIs under other directories should be considered internal to TFX (and therefore there is no backward or forward compatibility guarantee for them).

Each minor version of a TFX library or TFX itself, if it needs to depend on tfx_bsl, will depend on a specific minor version of it (e.g. tensorflow_data_validation 0.14.* will depend on, and only work with, tfx_bsl 0.14.*)

Installing from PyPI

tfx_bsl is available as a PyPI package.

pip install tfx-bsl

Nightly Packages

TFX-BSL 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 --extra-index-url https://pypi-nightly.tensorflow.org/simple tfx-bsl

This will install the nightly packages for the major dependencies of TFX-BSL such as TensorFlow Metadata (TFMD).

However it is a dependency of many TFX components and usually as a user you don't need to install it directly.

Build with Docker

If you want to build a TFX component from the master branch, past the latest release, you may also have to build the latest tfx_bsl, as that TFX component might have depended on new features introduced past the latest tfx_bsl release.

Building from Docker is the recommended way to build tfx_bsl under Linux, and is continuously tested at Google.

1. Install Docker

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

2. Clone the tfx_bsl repository

git clone https://github.com/tensorflow/tfx-bsl
cd tfx-bsl

Note that these instructions will install the latest master branch of tfx-bsl. 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

Then, run the following at the project root:

sudo docker-compose build manylinux2010
sudo docker-compose run -e PYTHON_VERSION=${PYTHON_VERSION} manylinux2010

where PYTHON_VERSION is one of {37, 38, 39}.

A wheel will be produced under dist/.

4. Install the pip package

pip install dist/*.whl

Build from source

1. Prerequisites

Install NumPy

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

Install Bazel

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

2. Clone the tfx_bsl repository

git clone https://github.com/tensorflow/tfx-bsl
cd tfx-bsl

Note that these instructions will install the latest master branch of tfx_bsl 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

tfx_bsl wheel is Python version dependent -- to build the pip package that works for a specific Python version, use that Python binary to run:

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

Supported platforms

tfx_bsl is tested on the following 64-bit operating systems:

  • macOS 10.12.6 (Sierra) or later.
  • Ubuntu 16.04 or later.
  • Windows 7 or later.

Compatible versions

The following table is the tfx_bsl package versions that are compatible with each other. This is determined by our testing framework, but other untested combinations may also work.

tfx-bsl apache-beam[gcp] pyarrow tensorflow tensorflow-metadata tensorflow-serving-api
GitHub master 2.38.0 5.0.0 nightly (1.x/2.x) 1.8.0 2.8.0
1.8.0 2.38.0 5.0.0 1.15 / 2.8 1.8.0 2.8.0
1.7.0 2.36.0 5.0.0 1.15 / 2.8 1.7.0 2.8.0
1.6.0 2.35.0 5.0.0 1.15 / 2.7 1.6.0 2.7.0
1.5.0 2.34.0 5.0.0 1.15 / 2.7 1.5.0 2.7.0
1.4.0 2.31.0 5.0.0 1.15 / 2.6 1.4.0 2.6.0
1.3.0 2.31.0 2.0.0 1.15 / 2.6 1.2.0 2.6.0
1.2.0 2.31.0 2.0.0 1.15 / 2.5 1.2.0 2.5.1
1.1.0 2.29.0 2.0.0 1.15 / 2.5 1.1.0 2.5.1
1.0.0 2.29.0 2.0.0 1.15 / 2.5 1.0.0 2.5.1
0.30.0 2.28.0 2.0.0 1.15 / 2.4 0.30.0 2.4.0
0.29.0 2.28.0 2.0.0 1.15 / 2.4 0.29.0 2.4.0
0.28.0 2.28.0 2.0.0 1.15 / 2.4 0.28.0 2.4.0
0.27.1 2.27.0 2.0.0 1.15 / 2.4 0.27.0 2.4.0
0.27.0 2.27.0 2.0.0 1.15 / 2.4 0.27.0 2.4.0
0.26.1 2.25.0 0.17.0 1.15 / 2.3 0.27.0 2.3.0
0.26.0 2.25.0 0.17.0 1.15 / 2.3 0.27.0 2.3.0

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

tfx_bsl-1.8.0-cp39-cp39-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.9 Windows x86-64

tfx_bsl-1.8.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (19.2 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

tfx_bsl-1.8.0-cp39-cp39-macosx_10_14_x86_64.whl (20.5 MB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

tfx_bsl-1.8.0-cp38-cp38-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.8 Windows x86-64

tfx_bsl-1.8.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (19.2 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

tfx_bsl-1.8.0-cp38-cp38-macosx_10_9_x86_64.whl (20.5 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

tfx_bsl-1.8.0-cp37-cp37m-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.7m Windows x86-64

tfx_bsl-1.8.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (19.2 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

tfx_bsl-1.8.0-cp37-cp37m-macosx_10_9_x86_64.whl (20.4 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

Details for the file tfx_bsl-1.8.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: tfx_bsl-1.8.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.2

File hashes

Hashes for tfx_bsl-1.8.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2cb44fa2551c69b79ea251f36ccee3cf91d92f815720d614a65814a82d89e84b
MD5 8ff459e6138cb4da5d931ff0181e47b0
BLAKE2b-256 a5a811d48a08f1e31920ce87915762cf980fc5a00a3d50a143574a3e1482c8c7

See more details on using hashes here.

Provenance

File details

Details for the file tfx_bsl-1.8.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for tfx_bsl-1.8.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d6d291e02b2a56d79e271fa8c1f93692b961b402af502de66ab736a2a7796e7d
MD5 e5f16ae62f2ebcf7e8c833d3c8203c4a
BLAKE2b-256 dfca4ec4cedffa17b76ee483ceca409f6c1593db2538a4f32262daf21bb43730

See more details on using hashes here.

Provenance

File details

Details for the file tfx_bsl-1.8.0-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for tfx_bsl-1.8.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 62f11765846b5050d0688dabf91d5ed2fad7e2346066e07baa1a85a9e14631ff
MD5 78b6b1615ea629817b8b233b1eb3c2e5
BLAKE2b-256 7923e74c266373f0ba87de0f9854e072b8907754425c2f2e4c01326e3ba00f3a

See more details on using hashes here.

Provenance

File details

Details for the file tfx_bsl-1.8.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: tfx_bsl-1.8.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.5

File hashes

Hashes for tfx_bsl-1.8.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e2546ee47518c27354bcc559706899c4801d791bb85915ad460fdb13933ce65b
MD5 8459321f833fe28cbc55dc002b0dab54
BLAKE2b-256 aabf731f61fc475ee33deda226c8ed05c5f77a0a76a3553ce0e6846aefa0fdba

See more details on using hashes here.

Provenance

File details

Details for the file tfx_bsl-1.8.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for tfx_bsl-1.8.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 a80c35ef69c0430d3e44aaf7ce7fe0d087a4e403516fafd18eddccaddc962479
MD5 370d0b5102ea8436e3bb7cc26b89c7a0
BLAKE2b-256 ca3c00075e484e18bf3f6a7582010a5315353bb357df83e7334c0752db2af8b3

See more details on using hashes here.

Provenance

File details

Details for the file tfx_bsl-1.8.0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tfx_bsl-1.8.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 083a35ef938ff2e5ef5269d6bac931a63469197ac875afced76d306369c4afd6
MD5 174931228f553eed058f93726efbf9fd
BLAKE2b-256 520755a29c361da1f049fff4a5a2c57e645bc961ae8cd6eb42709108f7a842bc

See more details on using hashes here.

Provenance

File details

Details for the file tfx_bsl-1.8.0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: tfx_bsl-1.8.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.0

File hashes

Hashes for tfx_bsl-1.8.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 48da5b607895a969f064df366aa21f2cc2158881bf1e2d4bc75ff1bba2dd0b6b
MD5 82fb8b72d2bdb9462c760eead66e6e50
BLAKE2b-256 fa0c18758d9d5ab5ba6137b80d161f43b46eff1994f8bcf098ce8544e97e8c79

See more details on using hashes here.

Provenance

File details

Details for the file tfx_bsl-1.8.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for tfx_bsl-1.8.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 66cc80f717c657762e2de5f692a295cb70e018c9706210a7d8ecff01459e5fd5
MD5 f1ec25070628305a3dfd6a2502936e59
BLAKE2b-256 87f8b4f5ed638c8535093fbc684e0a00a184143393500977b21e14b4649d22c1

See more details on using hashes here.

Provenance

File details

Details for the file tfx_bsl-1.8.0-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tfx_bsl-1.8.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7a471e35449bf6de72c68d954ad8afbcb031334cad682388a5638099303969d2
MD5 4620012e66dbb55fb181ebf572dc7403
BLAKE2b-256 21dc4f09ee7ccbaca0241dbed4e779dc131cd6fca80ba8fd02336e8f37c75f1c

See more details on using hashes here.

Provenance

Supported by

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