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 (1.x/2.x) 1.10.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.10.0-cp39-cp39-win_amd64.whl (3.9 MB view details)

Uploaded CPython 3.9 Windows x86-64

tfx_bsl-1.10.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.10.0-cp39-cp39-macosx_10_14_x86_64.whl (22.9 MB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

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

Uploaded CPython 3.8 Windows x86-64

tfx_bsl-1.10.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.10.0-cp38-cp38-macosx_10_9_x86_64.whl (22.9 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

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

Uploaded CPython 3.7m Windows x86-64

tfx_bsl-1.10.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.10.0-cp37-cp37m-macosx_10_9_x86_64.whl (22.9 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for tfx_bsl-1.10.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 771c8906ab35e148f8b56b7ae49314076402a8a7e6d226e36fefadeb4f6d2939
MD5 e31798babcd0dfbeead7d610d5defa3f
BLAKE2b-256 a16a06bf2b50f9982dec91b5c512148de370d5a2bf2806a581291b081d77396b

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for tfx_bsl-1.10.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 b3c27a0f349c26e2f609ad2d35f41e9b6d524d03e600d053ce6d309dcdd5a4e3
MD5 5122a9aee0bae548475001c3b9993a80
BLAKE2b-256 ad4e58d30b530edb164c98367f6c4da7d01a4518ec72594733a72efab0c1bffd

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for tfx_bsl-1.10.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 72df7fc17dea8b8255c4755da6a7ffa3ddd46d371d8549f025ef8f0bba72d84a
MD5 6368de16b478fef5ad6d2e9421954818
BLAKE2b-256 03a11d18e0bc26acab5ece923e6ddf6a1679b200d43600d61daacfb7c242bdbb

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for tfx_bsl-1.10.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e9454193d6dcd8c0ca66adc7d56672f6726eb7d53a9d93ec287dfc6863e64e47
MD5 8a0329f290a108a9c06f20758e095253
BLAKE2b-256 b2714450074421bca466edd49674f6dfe003037e967797e5306248e4a410aa7e

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for tfx_bsl-1.10.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 e8cf0c911b6ccb1a41384fbda7904d8efbcc6ee195e0c723211f876cf7c5eab5
MD5 45d7ab298e22f23255f9c12d203be2b0
BLAKE2b-256 241d5e26306496faa8a77a2b1ef47099a534e603f2ce8548b25934d8c62e8d1f

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for tfx_bsl-1.10.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4688e167f079fab90a9cda578ca58fafb5f1de149503f21ec15a0438ddfe7053
MD5 f5af4aad5d02d2a54134d29e6c17f6e5
BLAKE2b-256 d3c902aab894010a64b5e0e4208869d4d2bb2abd929555d84cb5d9df96a0722b

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for tfx_bsl-1.10.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 4f6ce4f69ca861a515d7637678afd0c5635c90d8d0b5f2ab9dbdc5186322925f
MD5 0567d25657cb7131dd2194f0b5eddba8
BLAKE2b-256 94feb4b58ff7b3241045c1abbaf3990b64819c82d954bde1f5e66116dfed0a19

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for tfx_bsl-1.10.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 e3ba7c7eddbe966ba2afd9ea18671f92ff5dbaa69591cd725d647d898af1f28a
MD5 05ad790454d10f1ab1bb728a84708577
BLAKE2b-256 1b5a26cdb319a2b15e8d0366a28bd7dcd20d8814bd093cf88c2704b66f67c81d

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for tfx_bsl-1.10.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 560bdde7720b2fe9fda6107e2370dedd4b234f7de3489d5f78ac007199781954
MD5 3acecf786bc2b5b06f84421a51035c3b
BLAKE2b-256 027bcd86bf1aa5d47a5cbed48c4e1e15c844e27a52c440b4186001c6c4b9b20e

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