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

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.28.0 2.0.0 nightly (1.x/2.x) 0.30.0 2.4.0
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-0.30.0-cp38-cp38-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.8 Windows x86-64

tfx_bsl-0.30.0-cp38-cp38-manylinux2010_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

tfx_bsl-0.30.0-cp38-cp38-macosx_10_9_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

tfx_bsl-0.30.0-cp37-cp37m-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.7m Windows x86-64

tfx_bsl-0.30.0-cp37-cp37m-manylinux2010_x86_64.whl (2.2 MB view details)

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

tfx_bsl-0.30.0-cp37-cp37m-macosx_10_9_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

tfx_bsl-0.30.0-cp36-cp36m-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.6m Windows x86-64

tfx_bsl-0.30.0-cp36-cp36m-manylinux2010_x86_64.whl (2.2 MB view details)

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

tfx_bsl-0.30.0-cp36-cp36m-macosx_10_9_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tfx_bsl-0.30.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for tfx_bsl-0.30.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3b41ea50e52747a2f6b92812600640f84ff61384e75844724d1ef032349c37b3
MD5 4fa0b3aaf28f691c039ca7dca8810e9c
BLAKE2b-256 194c46988e5ea8934d58f6f4b0caa4f3a5675acd1493bb3de60eb6b4db4ece40

See more details on using hashes here.

Provenance

File details

Details for the file tfx_bsl-0.30.0-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: tfx_bsl-0.30.0-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for tfx_bsl-0.30.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d508f3c9e7cfd1bf69e4df59ba21cc0fcff34f68c90a72ca9df828be40cf3161
MD5 48a1abde0c8bc5943a0929b8ecde133e
BLAKE2b-256 fe825e823a631afb7e011fdb2a6fa5d2022b2d45cb1ec2fab045cc0490e26409

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: tfx_bsl-0.30.0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 2.6 MB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.2

File hashes

Hashes for tfx_bsl-0.30.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ea4a3b9d38cad9c07cf91b3e6517d330f46766f2f3c17819765de82d447c4212
MD5 524fc102410500a5f1a564868b0ee4a2
BLAKE2b-256 71cbf9371c6924454624ca5349b3fe4980f4ecb20f7ad35c6e6c9dd13456daf6

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: tfx_bsl-0.30.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.0

File hashes

Hashes for tfx_bsl-0.30.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 31dbbb6b3681c33dd4b325caf3a545fd5fa59c0fb895bff0f547891726ba8741
MD5 25baa198e2db2298512ce6d61c2a9803
BLAKE2b-256 612ad3191e067e3cde6036a44c9f2fe2306c6ce806dd29b9b1822f3f658df281

See more details on using hashes here.

Provenance

File details

Details for the file tfx_bsl-0.30.0-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: tfx_bsl-0.30.0-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.6

File hashes

Hashes for tfx_bsl-0.30.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 bdeb1b9516b6244c4daf9d7a115bd6a7bd6e341be66d3ea0f0e638b23b30bfc3
MD5 44b3bf6e427d7e54e66da8a855e148ea
BLAKE2b-256 530ba3afbed67c44ce5d825f9c38529ce7f544973a10a44a4234331fc7463789

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: tfx_bsl-0.30.0-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 2.6 MB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.3

File hashes

Hashes for tfx_bsl-0.30.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2f153594e8ef4acb4773d44d14694f706fbc7ce159a7ab35e1c21cfaedec5d5d
MD5 c4810ffe625e7b1662cbf1538827dcd1
BLAKE2b-256 4afa4f8fa58f24efb1526fe32d91ff0b3b74ad23542c4e3aaa33fb815c592974

See more details on using hashes here.

Provenance

File details

Details for the file tfx_bsl-0.30.0-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: tfx_bsl-0.30.0-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.5

File hashes

Hashes for tfx_bsl-0.30.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 79a7b352782e1a05b5d5e56c8e11f2b0965fcad59ae44c4bb4b39edd2a5a918c
MD5 0249cbcffec65a219f678296bfc48c61
BLAKE2b-256 c0be007736c7e1a0e84bda701f75590597950fe1481f82262194d1a3558a61ed

See more details on using hashes here.

Provenance

File details

Details for the file tfx_bsl-0.30.0-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: tfx_bsl-0.30.0-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.10

File hashes

Hashes for tfx_bsl-0.30.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 6098f795b1c6eb47932b86c9fded5f5b3d2c42c089f777a4b8e8d9e49ec59b0f
MD5 f26fa1a6f5d04bf00c72f062fd9793c1
BLAKE2b-256 8066e2ac8a12660fad8d84ad2fbbae9011ea5395a02ab862f4cf879a0b9c4dfb

See more details on using hashes here.

Provenance

File details

Details for the file tfx_bsl-0.30.0-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: tfx_bsl-0.30.0-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 2.6 MB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.8

File hashes

Hashes for tfx_bsl-0.30.0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 654b49b70b4af90cc78e047d011ea600a5ee290e29be58da01fe08010a34e156
MD5 c86b77764058e3168637a016cf73ecb2
BLAKE2b-256 508fa6ad32db6a5386205c7040b241caa8eae951e6b20a1c4a6dea54243f9bca

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