semvec/pypi-packages huggingface dataset:
bazel-bep 1.0.2
A bazel BEP(build event protocal) package
Requires Python: >=3.8

# bazel-bep

bazel-bep is a library for Bazel build event protocal


## Installation

```shell
pip install bazel-bep
```

## Usage

### Basic Usage

get build results from BEP
```python
from bazel_bep import parse_bazel_build_event_file

file_path = 'build_event_protocol_bin.log'
parsed_events = parse_bazel_build_event_file(file_path)

named_sets = {}  # type: dict[str, NamedSetOfFiles]
outputs = {}  # type: dict[str, dict[str, set[str]]]

for event in parsed_events:
    kind = event.id.WhichOneof("id")
    if kind == "target_completed":
        print(event)

        target_name = event.id.target_completed.label
        target_path = [f.uri for f in event.completed.important_output]

        print(target_name, target_path)
```