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.29.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.29.0-cp38-cp38-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.8 Windows x86-64

tfx_bsl-0.29.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.29.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.29.0-cp37-cp37m-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.7m Windows x86-64

tfx_bsl-0.29.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.29.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.29.0-cp36-cp36m-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.6m Windows x86-64

tfx_bsl-0.29.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.29.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.29.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: tfx_bsl-0.29.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/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

File hashes

Hashes for tfx_bsl-0.29.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 44b06baadd0399e60167978664b682e538b9cb5baf6b2c366a4272293dee44a9
MD5 57846b738fc589ed47bbfa65b5a1aa61
BLAKE2b-256 8d62c473c2bb57be68d559b62b6da962db4b7befcee7856e2e37e19ac79708fa

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: tfx_bsl-0.29.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/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

File hashes

Hashes for tfx_bsl-0.29.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 9c04f931550829924b1b4b90eac1cc7b2bea873a62d2f0ae534bdf55e9b511b9
MD5 24d981c1e8f0667e7fd464be5b03bd08
BLAKE2b-256 9679f9819d1595b48e291ed28f175ec112669e9654bbf3c5c7e95e76f93f56d8

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: tfx_bsl-0.29.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/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.2

File hashes

Hashes for tfx_bsl-0.29.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 813fc50cd746e1d3ac6f1a02bbc96cffcb754be523ebe15bccf9a434a18ff042
MD5 3b1f85e34bcd0a65b49c5fecc344e2b2
BLAKE2b-256 f3131fe0431613df645aad7115da675546dc3ee3754f6fc527582f293f452d3f

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: tfx_bsl-0.29.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/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.0

File hashes

Hashes for tfx_bsl-0.29.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 82ce4cb045fd4ad5009040768a4fb5bcfefba637c6aa5b46616637cbb11a1a1a
MD5 c8ab24c1d184c72fb1b4c198e779e5ec
BLAKE2b-256 50b699e44cbcb5a67f661dcb7d67d47ec58fe18f854230abcd8ff57a2166d4ae

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: tfx_bsl-0.29.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/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.6

File hashes

Hashes for tfx_bsl-0.29.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5e35037a96c6de6abc6f5c0dc728af4b7e8210540590285cb262f604b2a327a2
MD5 95e795c09a9111750df747736398eaa5
BLAKE2b-256 cae95ea45abd976774f63ffea7ab9e2c02470efd8431f39aa618db1021642435

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: tfx_bsl-0.29.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/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.3

File hashes

Hashes for tfx_bsl-0.29.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 951fb12e972c97ac97ee0407a00046066b460148340b6b6f81857216bd7d6110
MD5 a367520550e5a467e4b8b1cde7e7b58d
BLAKE2b-256 ed498e325e89d300a70aa741361da45ecfbca1149dd2f35bd27a002c180e7465

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: tfx_bsl-0.29.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/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.1

File hashes

Hashes for tfx_bsl-0.29.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 a18d87298e976284acd8b52f08f2cc8c8a6a4ae2db765bf0626d542734aed810
MD5 03a6d94535843997ecbcb724d0802bf2
BLAKE2b-256 ebc456767cea211c5cdb6d566126e2b4232868479aeee544030329f58791430e

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: tfx_bsl-0.29.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/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.10

File hashes

Hashes for tfx_bsl-0.29.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 26a86afaf9bd207337cc1a20ec9616917e1cab5875c8c9e8faa90b10cc8d51aa
MD5 5d76970a521a07bfd3adb5249fe81566
BLAKE2b-256 e0d9dbaae5dd5226ee48defed34dc8d3970e93d56bd949fd0b083e9bb7a3b0d8

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: tfx_bsl-0.29.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/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.8

File hashes

Hashes for tfx_bsl-0.29.0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 06faa79d764abdd0d76b4cafcf3618c28c5ac9ba4e1e976e42fe56ef5536fb51
MD5 76beb1cb7bc2f24badabcfe9e337839a
BLAKE2b-256 13a8172a8438714a9542b894ca00f0472cf7ebcb910addd3c4a283d8fd6934f6

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