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.0.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.0-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bzl-2.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 024be0f078ff5a55b904c2417d372e0bf1c9df96cf67a9eb30699db26abecbc8
MD5 ddf52ca78ba68eb863f62931451673c5
BLAKE2b-256 349cd5e3279074ace4beba7653cc76b15967493b48b525e29474a66909af9a29

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: bzl-2.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 daa027f12be9d80bbc2c3a4c97886d4d594c6835322225d946258ce79101ef4c
MD5 f676e8c617608488a8bce8e958752a88
BLAKE2b-256 60fcf31c133ef09c563ffebf81a20c6ebde3e93cbc077d729826bfddd9338642

See more details on using hashes here.

Provenance

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