tfx-bsl
tfx_bsl (TFX Basic Shared Libraries) contains libraries shared by many TFX (TensorFlow eXtended) libraries and components.
What it is and what it does
tfx_bsl is a foundational library that packages shared code used across the TensorFlow eXtended ecosystem. It provides utilities, data structures, and helper functions that multiple TFX components—such as TensorFlow Data Validation (TFDV), TensorFlow Model Analysis (TFMA), and TensorFlow Transform (TFT)—rely on to avoid duplication and maintain consistency.
The package is designed primarily as an internal dependency rather than a direct user-facing library. Its public API (exported from tfx_bsl/public submodules) is intended for TFX pipeline authors and component developers, while other internal APIs carry no backward-compatibility guarantee. It depends on a substantial stack including apache-beam for distributed processing, tensorflow for computation, tensorflow-metadata for schema handling, and pyarrow for columnar data, making it a heavyweight but essential component of the TFX infrastructure.
Use it for:
- Building TFX pipelines that use TFDV, TFMA, or TFT, where tfx_bsl is installed as a transitive dependency
- Developing custom TFX components that need access to shared utilities from the tfx_bsl/public API
- Working with TensorFlow data validation and transformation workflows that rely on tfx_bsl's internal infrastructure
- Ensuring version compatibility across multiple TFX libraries by pinning tfx_bsl to match minor versions (e.g., 0.14.* for tensorflow_data_validation 0.14.*)
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
tfx_bsl provides shared libraries and utilities used internally by TensorFlow eXtended (TFX) components and standalone TFX libraries like TFDV, TFMA, and TFT.
Yes, but typically as an indirect dependency. Install directly only if you are building custom TFX components or need specific utilities from tfx_bsl/public. The package is actively maintained, has no known vulnerabilities, and uses a permissive license. Medium install friction is acceptable given its role in the TFX ecosystem. If you are using any TFX library, it will be installed automatically.
Install
tfx-bsl on PyPI
pip
pip install tfx-bsluv
uv add tfx-bslpoetry
poetry add tfx-bslInstalling tfx-bsl
Before you install
Medium install friction due to compiled wheels for specific Python versions (3.10–3.13) and a large dependency tree including apache-beam, tensorflow, and tensorflow-metadata. Actively maintained with recent releases.
License in practice
Licensed under Apache 2.0 (permissive), allowing use in commercial and open-source projects with minimal restrictions.
Quickstart
pip install tfx-bsl
import tfx_bsl
# Typically used as a dependency of other TFX libraries rather than directly
Requires Python 3.10 or later; pre-built wheels available for macOS 11+ (ARM64) and Linux (manylinux_2_27+). Direct use is uncommon; intended primarily as a transitive dependency of TFX components.
Verify before relying
- Specific public API surface and stability guarantees beyond the note that only tfx_bsl/public symbols are intended for direct use
- Performance characteristics or scalability limits when used with large-scale data pipelines
- Compatibility matrix details for untested dependency combinations mentioned in the documentation
Package facts
| License | Apache 2.0 (permissive) |
| Python support | supports the current Python release (<4,>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 11 — absl-py, apache-beam, dill, google-api-python-client, numpy, pandas, protobuf, pyarrow, tensorflow, tensorflow-metadata, tensorflow-serving-api |
| Maintenance | actively maintained — 65 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 159,408/month — #10,696 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: tfx_bsl-1.21.0-cp310-cp310-macosx_11_0_arm64.whl; tfx_bsl-1.21.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; tfx_bsl-1.21.0-cp311-cp311-macosx_11_0_arm64.whl; tfx_bsl-1.21.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; tfx_bsl-1.21.0-cp312-cp312-macosx_11_0_arm64.whl; tfx_bsl-1.21.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; tfx_bsl-1.21.0-cp313-cp313-macosx_11_0_arm64.whl; tfx_bsl-1.21.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Keywords: tfx, bsl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
tf-nightlytf-nightly provides nightly builds of…
permissive · top 15,000 on PyPI
tf-nightly-cputf-nightly-cpu provides a CPU-optimized nightly…
permissive · top 15,000 on PyPI
tensorflow-data-validationTensorFlow Data Validation (TFDV) computes…
permissive · top 15,000 on PyPI
tensorflow-transformTensorFlow Transform preprocesses data with…
permissive · top 15,000 on PyPI
tensorflow-ioExtends TensorFlow with support for file…
permissive · top 15,000 on PyPI
tensorflow-metadataProvides standard schema, statistics, and…
permissive · top 5,000 on PyPI
tensorflow-probabilityTensorFlow Probability provides probabilistic…
permissive · top 5,000 on PyPI
absl-pyProvides Google's production-tested Python…
permissive · top 1,000 on PyPI
tensorflow-addonsTensorFlow Addons provides experimental…
permissive · top 5,000 on PyPI