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 {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 20.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.47.0 10.0.0 nightly (2.x) 1.14.0 2.13.0
1.14.0 2.47.0 10.0.0 2.13 1.14.0 2.13.0
1.13.0 2.40.0 6.0.0 2.12 1.13.1 2.9.0
1.12.0 2.40.0 6.0.0 2.11 1.12.0 2.9.0
1.11.0 2.40.0 6.0.0 1.15 / 2.10 1.11.0 2.9.0
1.10.0 2.40.0 6.0.0 1.15 / 2.9 1.10.0 2.9.0
1.9.0 2.38.0 5.0.0 1.15 / 2.9 1.9.0 2.9.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.14.0-cp310-cp310-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.10 Windows x86-64

tfx_bsl-1.14.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (22.5 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

tfx_bsl-1.14.0-cp310-cp310-macosx_12_0_x86_64.whl (24.1 MB view details)

Uploaded CPython 3.10 macOS 12.0+ x86-64

tfx_bsl-1.14.0-cp39-cp39-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.9 Windows x86-64

tfx_bsl-1.14.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (22.5 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

tfx_bsl-1.14.0-cp39-cp39-macosx_12_0_x86_64.whl (24.1 MB view details)

Uploaded CPython 3.9 macOS 12.0+ x86-64

tfx_bsl-1.14.0-cp38-cp38-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.8 Windows x86-64

tfx_bsl-1.14.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (22.5 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

tfx_bsl-1.14.0-cp38-cp38-macosx_12_0_x86_64.whl (24.1 MB view details)

Uploaded CPython 3.8 macOS 12.0+ x86-64

File details

Details for the file tfx_bsl-1.14.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for tfx_bsl-1.14.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8e8bc85061e5c98b15a8702e16c52165e8cb6a43e9d9f98b526559f5e23ab99d
MD5 9d05f90cf616f4d8f090aa0ddbe608bc
BLAKE2b-256 9b37ef68d7d870d75fd335c66eb60a93f6181f4c5af498fec8c8b7170e3271ad

See more details on using hashes here.

Provenance

File details

Details for the file tfx_bsl-1.14.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tfx_bsl-1.14.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ee71279034e67c594c46a2a424ed0743f9576261749ea740f2e61cd455efd572
MD5 6743b1dd11d4239e77d7a0d74b37d896
BLAKE2b-256 da16ad1f6777db875a38dea5989c430ce2979484407b8514642cadbe1a720604

See more details on using hashes here.

Provenance

File details

Details for the file tfx_bsl-1.14.0-cp310-cp310-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for tfx_bsl-1.14.0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 4c016162eeb9247ffb45b88a98b7f15c1d88d0719a200cea89a91fe5315e2afa
MD5 edb2e6f9c9418b29c74a1aaf766b3b8b
BLAKE2b-256 7639a31ca5cae757a52fe19a53661788708e16e55e4d31e3c3a89b215ffe8632

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: tfx_bsl-1.14.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 3.5 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for tfx_bsl-1.14.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9c72e4c6ab45dd51ba0d554057d9e0c3eeca3e39eae16a0f098d6720feff9e37
MD5 5fc0d4da664b9b6df83c2c0199260f9d
BLAKE2b-256 63760a21ef0463b0e05f8512a3df364ff872ca74e84fb7586c2ca12e7c8d1693

See more details on using hashes here.

Provenance

File details

Details for the file tfx_bsl-1.14.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tfx_bsl-1.14.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e154fd9305b4fd85c52d49c906021e857dd4d0e922b78686eb279a555664401a
MD5 d53a0333b3368648618c05044becdfd6
BLAKE2b-256 6bdd2b5f2ab59ae16b41c8fb42aff42009d8681651a545faa856fa22ab84d7f0

See more details on using hashes here.

Provenance

File details

Details for the file tfx_bsl-1.14.0-cp39-cp39-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for tfx_bsl-1.14.0-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 980b4b7fb9e717b46d8e3dfd5d7af96af274c36d842e36ef5909a881613a3e41
MD5 84012b0259e9cab97f2645063c7f879e
BLAKE2b-256 5e5d21eed0229890437f2710a17198b54944f757cfde057e1ab6ccbeff6ab36a

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for tfx_bsl-1.14.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2cf105a8d2190f7a74b61cc52d59a80b8e2d238f07623cb41b55558ba8258b24
MD5 21a2660c7573f36af803f6ccd2717907
BLAKE2b-256 222633f436de43b7298f7d0e34f38f52e6745eb39bac1e3e84da907e43598110

See more details on using hashes here.

Provenance

File details

Details for the file tfx_bsl-1.14.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tfx_bsl-1.14.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fe90cefde5d371c043835368d1004a3679b7788b9bccf3bd06ca84ccc6fb2863
MD5 f256d7ef47db270a9fb10ac7dbec1215
BLAKE2b-256 378c3534124ad7cacc7cd128708fc629f52cd6e58e581f81c15bff13f6e916cb

See more details on using hashes here.

Provenance

File details

Details for the file tfx_bsl-1.14.0-cp38-cp38-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for tfx_bsl-1.14.0-cp38-cp38-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 585b194482b6e0a4e2643dafc8ff9621c7a85537d5ca2930485ef3806af4fbe5
MD5 001b16cf8fc3cab076e88f9a0791ae1e
BLAKE2b-256 6622d61477cf8eeb4dcfdc1543956969c2f893aa2abc1c3cf8bf3d3eec7d6ce7

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