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.40.0 6.0.0 nightly (2.x) 1.12.0 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.12.0-cp39-cp39-win_amd64.whl (3.9 MB view details)

Uploaded CPython 3.9 Windows x86-64

tfx_bsl-1.12.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (21.6 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

tfx_bsl-1.12.0-cp39-cp39-macosx_12_0_x86_64.whl (23.1 MB view details)

Uploaded CPython 3.9 macOS 12.0+ x86-64

tfx_bsl-1.12.0-cp38-cp38-win_amd64.whl (3.9 MB view details)

Uploaded CPython 3.8 Windows x86-64

tfx_bsl-1.12.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (21.6 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

tfx_bsl-1.12.0-cp38-cp38-macosx_12_0_x86_64.whl (23.1 MB view details)

Uploaded CPython 3.8 macOS 12.0+ x86-64

tfx_bsl-1.12.0-cp37-cp37m-win_amd64.whl (3.9 MB view details)

Uploaded CPython 3.7m Windows x86-64

tfx_bsl-1.12.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (21.6 MB view details)

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

tfx_bsl-1.12.0-cp37-cp37m-macosx_12_0_x86_64.whl (23.1 MB view details)

Uploaded CPython 3.7m macOS 12.0+ x86-64

File details

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

File metadata

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

File hashes

Hashes for tfx_bsl-1.12.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 25aba8f43e4a461449277da637187469b3c16e604fe27f8b190d621ee4e4db9c
MD5 5dc7721329e83c61ebdc748ff7f5c7be
BLAKE2b-256 64bc4660ca85a2d26dae27a77461ccf6f1575b0f7b998b02bf02c4f362e0ccde

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for tfx_bsl-1.12.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 115371800becf21f9f3dc28b92ff274293a1010cfb2323761488750983eeae8a
MD5 49832c80d1c235268e3b81bd17cc9626
BLAKE2b-256 07e8aa533e80be395a5c5902a50908e3ce704bc6cf25554e7481bfcdd9ae6250

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for tfx_bsl-1.12.0-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 53fb05dee6efc8f428051fa1d7000b2812252c282f662bd660dd759f34464011
MD5 161e29d5cebb750c279f258c87a469a7
BLAKE2b-256 35d7fdddd6cd6d6f6fcfd640ac0abd49c13d646947cd98d98e212976b4f6fca8

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: tfx_bsl-1.12.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 3.9 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.12.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8782b59e831ce34ee0bfd1a32991b71a9ed4ba5a820c7a7f633c3f355d88177e
MD5 aac8587596a5e4786296ebab08396095
BLAKE2b-256 204a868ff42b37ae38a1d9c39be79797e5d8c4b3278ef645ec8aca49b9337ed4

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for tfx_bsl-1.12.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 1cce93a84819418ae6521568810819748226b767b4e23e155d1db1862aa2ace1
MD5 e54ffa64183543476c8fab6c80234d96
BLAKE2b-256 591dffa90926596456e51c56f1b28190dad6c28ce6929405f12e63965026c96b

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for tfx_bsl-1.12.0-cp38-cp38-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 75d3026d95dfcaff74034f0a8786b5966336230894a8778c3c50b6f04f52049b
MD5 54d69532e0934e93e6d245266e909d6f
BLAKE2b-256 2d1322e98933a378215f13e3d6e31f5f0028c4bc6a9512240322cce9574afa96

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for tfx_bsl-1.12.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 a6480bedae2d14f42783a1090a97e567bbc7095a2198ef5fe766aaa887ffb977
MD5 2f47245f179fad6447a147c5d599b8e3
BLAKE2b-256 2e85fda1916df6e73ad2819cba0ea6aceff02fe5758f8ba630bd1a358d7ef0dd

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for tfx_bsl-1.12.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 4d5c3291d36deacef4a4003399c1adc47781d2b7361c0419f12516c8dd5d0450
MD5 ba72732cf1be0d49a1b2f0ca6fa148ef
BLAKE2b-256 f435eb86894b3ea213aa44446d69ab93110feaf1f77123a94b212c518f32455c

See more details on using hashes here.

Provenance

File details

Details for the file tfx_bsl-1.12.0-cp37-cp37m-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for tfx_bsl-1.12.0-cp37-cp37m-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 2964468337f1dc2cbf19e49583e710c2758e7d2371443eecfa0fdae8e3971a2b
MD5 f86c3df6e1652ca9ff962e180b4eaae4
BLAKE2b-256 e2f2affb7fd61f3fa27c98e3418baf6bd0d2f22bcf74341e0db914a7abc10190

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