{"categories":[{"label":"Build Tools","url":"https://skillfed.io/packages/category/software-development-build-tools"}],"enrichment":{"capability":"Provides a Python API to locate and access runfiles (data files and binaries) built and packaged by Bazel, supporting both manifest-based and directory-based lookup strategies.","skillfed_tags":["bazel","build-system"],"use_cases":["Access data files packaged alongside a Bazel-built Python binary at runtime.","Locate and run other Bazel-built binaries from within a Python test or application.","Set up environment variables for subprocesses spawned by a Bazel-built Python program so they can find their own runfiles.","Resolve workspace-qualified paths to actual filesystem paths in a Bazel build system."],"what_it_does":"bazel-runfiles is a lookup library that helps Python code find and access files and binaries that Bazel has packaged as runfiles. When Bazel builds a Python binary or test, it stages dependencies and data files in a runfiles tree; this library provides the API to locate those files at runtime using either a manifest file or a directory structure, depending on the Bazel configuration.\n\nThe library is designed for use within Bazel-built projects. You create a Runfiles object, then call its Rlocation method with a workspace-qualified path to get the actual filesystem location of a runfile. It also supports setting up environment variables for subprocesses that need to access runfiles themselves. The implementation automatically detects whether to use manifest-based or directory-based lookup based on environment variables set by Bazel.","worth_installing":"Yes, if you are building Python binaries or tests with Bazel and need to access runfiles at runtime. The package is actively maintained, has no dependencies, and carries a permissive license. It is essential infrastructure for Bazel-Python integration but only relevant within a Bazel project; installing it outside that context is unnecessary."},"id":"bazel-runfiles","links":{"html":"https://skillfed.io/packages/bazel-runfiles","md":"https://skillfed.io/packages/bazel-runfiles.md","pypi":"https://pypi.org/project/bazel-runfiles/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-14","license_spdx":null,"license_treatment":"permissive","name":"bazel-runfiles","python_support":"supports_current","summary":null},"popularity":{"monthly_downloads":5069741,"position":2174,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.3.1"}
