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.11.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.11.0-cp39-cp39-win_amd64.whl (3.9 MB view details)

Uploaded CPython 3.9 Windows x86-64

tfx_bsl-1.11.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.11.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.11.0-cp38-cp38-win_amd64.whl (3.9 MB view details)

Uploaded CPython 3.8 Windows x86-64

tfx_bsl-1.11.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.11.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.11.0-cp37-cp37m-win_amd64.whl (3.9 MB view details)

Uploaded CPython 3.7m Windows x86-64

tfx_bsl-1.11.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.11.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.11.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: tfx_bsl-1.11.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.11.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 eeda487076ede615f270172d93bfd98489a909c3ca5bde696c3f884d2a83acd8
MD5 ea314a8d464ef46ecfdcdbcb0c4bfb5c
BLAKE2b-256 598d768071e34ee34f26882027af05b3ca93523aec29de99b3cc01a64ec8d889

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for tfx_bsl-1.11.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5fc21a079282d0e618ccf7bb06d6d1e767b65f17b6303fe8aa85282c5d723654
MD5 046c5202d1ca42d43e02a83608a6a1db
BLAKE2b-256 fa4da1714df927894bb855c207e58fc580f120a725bb78473562f6747b9386b5

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for tfx_bsl-1.11.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 86b51d045cac01876dd3f4034e72a5bccb84c95cdf1f25d35ff77aa237cf6bf5
MD5 b93b6eb1c408e1d2c5e0fe51fdbcbd0b
BLAKE2b-256 03666b649989fc86480dd5e18439eb9e40a3931e8a4fbc2a9170466c483893dc

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: tfx_bsl-1.11.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.11.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 06e2b81dd238dad7d9ab3567e6b12ea81e4ef93f75c643e295e9c0218ced61a7
MD5 95e9470ab669759ec8a3aaa8ff1f0195
BLAKE2b-256 d4bafcc0adeca4fb3f734c5c8749dc88f000970910187a112a24046812cec9fe

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for tfx_bsl-1.11.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c06c9bff4f42a5e4b05f1da841696c2605b9543c2f195d110cd3286d1d413817
MD5 6571954955b223bcc43781f2432561c7
BLAKE2b-256 cd5db8c844354d2b91a7ee3075aaafc917c100be2b5cdcc9d407ec7f0390b573

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for tfx_bsl-1.11.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 79460793911490624c35028a238b376e5b7bb004999e914e7dd17e869b5b8403
MD5 ff1b2486e2389d1d1a4f481ff9354348
BLAKE2b-256 2026c7f6c2d5886e952426fa234c6e6434474784a162450150ffaa346f548848

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: tfx_bsl-1.11.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.11.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 f9150b39c24556f43bf0948caaf50aea890d576fc7bb45a4bac4d1d708808e3b
MD5 b983763ea1672f4249086b6d5aef34ce
BLAKE2b-256 2265867457f4061ea87589e77da6b018ba586216103c71e8bd31d3f85a36bc33

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for tfx_bsl-1.11.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 09d58ad52d4dd1ffc09c1781cd564783ea3f73fd662ec1b069a5aea7599bc619
MD5 4b462d6eb76c66af2fe225ea48a17eac
BLAKE2b-256 1df347622830ac77ea224b84ff1c26fcd288904260a24856655901bf0dd69c6e

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for tfx_bsl-1.11.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 04bbd83cc6c336199969571b454262c3f4aacaac77ca066a6aeb847e85532896
MD5 156ebb38e6203b9ee56aa820e1055ab4
BLAKE2b-256 14afd8f123bbd46f830adfdde229581e843b180925eb7b9bc665229e8dfc30f6

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