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.31.0 2.0.0 nightly (1.x/2.x) 1.2.0 2.5.1
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

If you're not sure about the file name format, learn more about wheel file names.

tfx_bsl-1.2.0-cp38-cp38-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.8Windows x86-64

tfx_bsl-1.2.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (19.0 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

tfx_bsl-1.2.0-cp38-cp38-macosx_10_9_x86_64.whl (20.3 MB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

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

Uploaded CPython 3.7mWindows x86-64

tfx_bsl-1.2.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (19.0 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

tfx_bsl-1.2.0-cp37-cp37m-macosx_10_9_x86_64.whl (20.3 MB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

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

Uploaded CPython 3.6mWindows x86-64

tfx_bsl-1.2.0-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (19.0 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

tfx_bsl-1.2.0-cp36-cp36m-macosx_10_9_x86_64.whl (20.3 MB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tfx_bsl-1.2.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.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.5

File hashes

Hashes for tfx_bsl-1.2.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a15c882ecbad580529bbf6b000f9392cca13bda6eb8e00cf4f3310e8c0942a52
MD5 9ee6c225fac2f00835135c3688a6bebb
BLAKE2b-256 cf5d01f808864f8fd7ab757f1df6c75cafbf60dd4082eeebc242b4ccfe525287

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tfx_bsl-1.2.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 72ef8b688e68d983c3727dee8f8589d1e1d154204fd058aa7cf469cbdf55d9c6
MD5 470c51d0c16657da8e6c24fe8c0bc61d
BLAKE2b-256 75d87dd2d4faff4ecb62a1b580cf1748a0e8595bc488dcbb3343c8714ce4cee5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tfx_bsl-1.2.0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 20.3 MB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.2

File hashes

Hashes for tfx_bsl-1.2.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3746e6dc77b23859468d09c0911efbf03ed3ca53874a0a9272fdcd6e57389677
MD5 350b3a69bba49fc30fe8544b316f57ab
BLAKE2b-256 fbe75806469b739ff5d2a6d72182434f2936c25469b67914cdf1eff746d0598b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tfx_bsl-1.2.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.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.0

File hashes

Hashes for tfx_bsl-1.2.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 d447a452bcd49c1bd1bccbdb3406b49a44c18e0d5bb59f85edcc7d3dda96c814
MD5 a772680af8a14bfc9b6a182a6556305a
BLAKE2b-256 3484c755bf970904d83f73bdec1f954da62c2ca4b2f1335cbd7ef215c30977a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tfx_bsl-1.2.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 deb26418aadb578223dd4b9e97da9b6ccdcd3e4edd1821222e069a533f87f754
MD5 36f953fb4935ada6ca48e1f53a34ae38
BLAKE2b-256 bab2765ca2974ea625708c42a1df34d2961c28a1f3d9d7bb75e0edfde3612b1d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tfx_bsl-1.2.0-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 20.3 MB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.3

File hashes

Hashes for tfx_bsl-1.2.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 fe63cd6a16c71e0a4a9567352a18e9fe47d19f1c9a4059cbc8a106a507fca591
MD5 a3da50edf9a857f913754840942f4326
BLAKE2b-256 5b2b85e488462658dda579986b783b144f6c13f2dfa5a88c6da78d610e5e768c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tfx_bsl-1.2.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.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.6.5

File hashes

Hashes for tfx_bsl-1.2.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 5d98683f0101c32d32195c9b916930d366b72749dedfce6eb046d3439eebae76
MD5 62a09d84eabaccc654ce9d4d34ebe320
BLAKE2b-256 ee80b8802d289e8fc1c269a55e897b5512cb37f8c67631be8beafdc19df3d2fa

See more details on using hashes here.

File details

Details for the file tfx_bsl-1.2.0-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for tfx_bsl-1.2.0-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 91c77ebf29699a928f927d1c2f50440a9f7488b4be0096ec575d22add0b02ae6
MD5 e1059d8fdad6ead897f49c7c548f683c
BLAKE2b-256 3d0699bbcd2265d51c8f2d6e8b110259d2cbdb62e19f4c1c5343def466395219

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tfx_bsl-1.2.0-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 20.3 MB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.6.8

File hashes

Hashes for tfx_bsl-1.2.0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5486a064f1624ac435566ff7815f639152a6618e3fd711b8e7d9b19ce772a95c
MD5 da9b6f27b229cb842dc2175993af5c00
BLAKE2b-256 57a61d4e2be9549721366bdd9d6a62a54bc0a5c3bbda554735b0c7618a661c23

See more details on using hashes here.

Supported by

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