Terminal UI for browsing and executing Bazel genrule targets
Project description
bzl
Terminal UI for browsing and executing Bazel targets.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61ea3bed4405e8387b41dec6cfe268f3e66cc7e64653281e0020e5d5c8781258
|
|
| MD5 |
74c12c19f0f45ffbe67efc4b50ee1771
|
|
| BLAKE2b-256 |
9d2a4025b5930d0a3f3d0d2e9645478daa7a10b669d11c1e7e1a2d7161661b08
|
Provenance
The following attestation bundles were made for bzl-2.2.0.tar.gz:
Publisher:
release.yml on iamvinit/bzl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bzl-2.2.0.tar.gz -
Subject digest:
61ea3bed4405e8387b41dec6cfe268f3e66cc7e64653281e0020e5d5c8781258 - Sigstore transparency entry: 1060260744
- Sigstore integration time:
-
Permalink:
iamvinit/bzl@1ef25785b71b4401da1510a39302869748e6be1a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/iamvinit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1ef25785b71b4401da1510a39302869748e6be1a -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40e8a1b096ec9d983405df02690c559fdea0f1335f1e4fbf797891e65ff0d028
|
|
| MD5 |
a2a258ce3ecf1fcb5d11e896c30055de
|
|
| BLAKE2b-256 |
4a3f61821eddbf537d26abfd8bbfa7f591caa0bd4322cbcb2a676d61812cf431
|
Provenance
The following attestation bundles were made for bzl-2.2.0-py3-none-any.whl:
Publisher:
release.yml on iamvinit/bzl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bzl-2.2.0-py3-none-any.whl -
Subject digest:
40e8a1b096ec9d983405df02690c559fdea0f1335f1e4fbf797891e65ff0d028 - Sigstore transparency entry: 1060260840
- Sigstore integration time:
-
Permalink:
iamvinit/bzl@1ef25785b71b4401da1510a39302869748e6be1a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/iamvinit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1ef25785b71b4401da1510a39302869748e6be1a -
Trigger Event:
workflow_dispatch
-
Statement type: