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.1.1.tar.gz (234.3 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.1.1-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bzl-2.1.1.tar.gz
Algorithm Hash digest
SHA256 9d6825aea3f227eda7d9e7dc06ce9551c9ef533f18160173e760ffb7b4715c0b
MD5 c34dcdc71040b09a748e0a141093e55b
BLAKE2b-256 7dcbe3fd6c3bb860c2a31695f8388c6ed20f7ec0535e0e05b73f2e906b08e78b

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: bzl-2.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.2 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 55102440445636556f185edff951ffc9402652972abf00134ac45e4bcb5feacb
MD5 388319ee4e6c9c812a248cb61f9c2935
BLAKE2b-256 8ba3b3dd03ce64b44e9c33e63a50229ef5af890c3e108ced90651513d67f5487

See more details on using hashes here.

Provenance

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