skillfed

tfx-bsl

tfx_bsl (TFX Basic Shared Libraries) contains libraries shared by many TFX (TensorFlow eXtended) libraries and components.

tfx-bsl v1.21.0 159.4K downloads/30d#10,696 on PyPI65
Permissive license Apache 2.0 Active released

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-bsl

uv

uv add tfx-bsl

poetry

poetry add tfx-bsl

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: EducationIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOS :: MacOS XOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Scientific/EngineeringTopic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Scientific/Engineering :: MathematicsTopic :: Software DevelopmentTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python Modules

Tags

tfx shared librariestensorflow extended utilitiestfx component dependenciestfx data validation supporttensorflow pipeline infrastructure
tensorflow-ecosystemdata-pipeline-infrastructure

More Software Development packages