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.9.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.9.0-cp39-cp39-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.9 Windows x86-64

tfx_bsl-1.9.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.9.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.9.0-cp38-cp38-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.8 Windows x86-64

tfx_bsl-1.9.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.9.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.9.0-cp37-cp37m-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.7m Windows x86-64

tfx_bsl-1.9.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.9.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.9.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: tfx_bsl-1.9.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.1 CPython/3.9.2

File hashes

Hashes for tfx_bsl-1.9.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e507aa4499f3285c708090751a2d6c711b81817ad2ecf8010e8cc41c6612f557
MD5 eaee26dc28644fca230e471f630b60e5
BLAKE2b-256 0a59a9aac968fc25340d695885eea855fef4cd1f4d99e06ade1ac978bf20dbe9

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for tfx_bsl-1.9.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 2f3acf45cd99abec54d1921aaea63f172860136c954677ef845c261ab9bdc679
MD5 1f4aba30975339bd1c9a25e617635613
BLAKE2b-256 ad6acb73a4c993c85afb325936fea923373cf78de7a52efcb305020cf4553107

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for tfx_bsl-1.9.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 635b22263fd23a3433d33505fb6b1cc6255b2c82e7a71948fdf0e3876384d5a4
MD5 1edee4cf07f8b28b31f5951394df7983
BLAKE2b-256 b8c2e13ea5cd2641a9e5c1c8b836819fb8e3fbecdacc98a349d679aafc0636ee

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: tfx_bsl-1.9.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.1 CPython/3.8.5

File hashes

Hashes for tfx_bsl-1.9.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b5b0f30d8b40929da985c4920b3443e6a65f14eb433713a8a1b2ce78163d7533
MD5 235c1c95ac32cebf6a8c09bc534853f4
BLAKE2b-256 93de179271ce0bbc5f80afe27b15cb496df18fa8bd0a545de1969eb96d3c1dfc

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for tfx_bsl-1.9.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 b017e18f268199d06db738ad8053ec75d74d5b2cc3353c4efc53ffa5f8906095
MD5 6fda6e7640197f53a468edc9f2065c8d
BLAKE2b-256 fa2cdec1f1e82ca268173f3fefe9ba854603a5f9e9d678da605222609415fab0

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for tfx_bsl-1.9.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 bac0bdd7cf5d5cc10db1eb15d6d117c72933f82b5423b9f3d3735ba01b1d96a2
MD5 468803855f2e10fdd32244fa3b57c7b6
BLAKE2b-256 dbd875bf72d5b18aee09a5e106da37b1a8f615ad9c18dfe136e0811e47e37615

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: tfx_bsl-1.9.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.1 CPython/3.7.0

File hashes

Hashes for tfx_bsl-1.9.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 61637eba68c7f77f221149798dea131961697b45283ce8885a5e67e2243ea637
MD5 dc1bba636d2c4f56663c2250563c5e51
BLAKE2b-256 eda03f0fa3364c9e25f4d6373ea8f947281483a90f88b161e033a21dfda25d87

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for tfx_bsl-1.9.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 b6ca892af275ed481226bdbb2432d8c5dcc836719312c99ee96b88a634626fe1
MD5 4b50223a38f29c6741d145458c521325
BLAKE2b-256 12e38e6a6d6e6718ed4fcb0c5c719446b48dd17941b819fd536bcb5fa6cd4cf8

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for tfx_bsl-1.9.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d59ef10708929d5f1265dd659c926a0db7127dd14ae51d7eb63f5a5b6db2f5f4
MD5 9bccf687eb844ab57f81f0776bd7a44c
BLAKE2b-256 705e7509f984d7ab0ec635f6e3225367932cf13a753112488f54bf4f0cb28b4f

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