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.3.0.tar.gz (234.7 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.3.0-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bzl-2.3.0.tar.gz
Algorithm Hash digest
SHA256 7270613e575e4b8ccea8531742f313d88b318e43c56d5394f05ee5a0d413b3a6
MD5 88d22a706fd5303b7cbabf8659c88df4
BLAKE2b-256 1245e78f1c25583b67ee7da56932bd0bd5b7e872fbda9959aec0a1c2000e54b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for bzl-2.3.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.3.0-py3-none-any.whl.

File metadata

  • Download URL: bzl-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 16.5 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f3327d81ad4daad197268bce39cffb6c7dae0c62f0b31bc2fac560c1c99ca9f0
MD5 d9fed1d3ef3b8eebed04947f2b27ef78
BLAKE2b-256 8c1cef9346e9860d113f8b07320c87800c9db32f1008bb678337c2270289b538

See more details on using hashes here.

Provenance

The following attestation bundles were made for bzl-2.3.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