Skip to main content

Terminal UI for browsing and executing Bazel genrule targets

Project description

PyPI version

bzl

Terminal UI for browsing and executing Bazel targets.

demo-2

Install

Install the latest release directly from PyPI:

pip install bzl

Or using pipx (recommended):

pipx install bzl

Usage

# local — fuzzy-browse all genrules in the current Bazel repo
bzl

# narrow the query scope (faster in large monorepos)
bzl --scope //modules/...
# or use the short form
bzl -S //modules/...

# run on a remote host over SSH (query + build both happen remotely)
bzl --ssh user@build-host
bzl -s user@build-host -d /remote/path/to/repo

Configuration

You can create a .bzlrc file in your repository root or home directory (~/.bzlrc) to set default options.

Example .bzlrc:

[defaults]
ssh = user@build-server
ssh_dir = /home/user/my-repo
scope = //modules/...
cache_ttl = 20160
kinds = genrule,test_rule

Key bindings

Key Action
Type Filter the list
/ Navigate
Enter Select module / execute target
Ctrl+V Toggle verb between build, run, and test
Ctrl+E Execute bazel clean immediately
Ctrl+X Execute bazel clean --expunge immediately
Ctrl+F Refresh Bazel query
Ctrl+K Select target rules (genrule, test_rule, etc.)
Esc Go back (or Quit if on main screen)

Note

NB: The Bazel CLI is required to use bzl. Install the Bazel CLI (or bazelisk) following the official instructions: https://bazel.build.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bzl-2.2.0.tar.gz (234.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bzl-2.2.0-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file bzl-2.2.0.tar.gz.

File metadata

  • Download URL: bzl-2.2.0.tar.gz
  • Upload date:
  • Size: 234.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bzl-2.2.0.tar.gz
Algorithm Hash digest
SHA256 61ea3bed4405e8387b41dec6cfe268f3e66cc7e64653281e0020e5d5c8781258
MD5 74c12c19f0f45ffbe67efc4b50ee1771
BLAKE2b-256 9d2a4025b5930d0a3f3d0d2e9645478daa7a10b669d11c1e7e1a2d7161661b08

See more details on using hashes here.

Provenance

The following attestation bundles were made for bzl-2.2.0.tar.gz:

Publisher: release.yml on iamvinit/bzl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bzl-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: bzl-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bzl-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 40e8a1b096ec9d983405df02690c559fdea0f1335f1e4fbf797891e65ff0d028
MD5 a2a258ce3ecf1fcb5d11e896c30055de
BLAKE2b-256 4a3f61821eddbf537d26abfd8bbfa7f591caa0bd4322cbcb2a676d61812cf431

See more details on using hashes here.

Provenance

The following attestation bundles were made for bzl-2.2.0-py3-none-any.whl:

Publisher: release.yml on iamvinit/bzl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page