bazel-contrib / bazel-contrib/rules_python
Add a library that defines a `Label` class in python
- Dominant language
- Starlark
- Stars
- 688
- Forks
- 721
- Avg merge
- 15h 7m
- Merged PRs (30d)
- 76
Description
# 🚀 feature request
### Description
I would love `rules_python` to expose a library similar to [@rules_rust//util/label](https://github.com/bazelbuild/rules_rust/blob/0.32.0/util/label/label.rs) which defines a validated representation of a [Label](https://bazel.build/rules/lib/builtins/Label) for users to use in their code.
It'd be fantastic if the interface was a class (`Label`) that did validation on `__init__`.
Contributor guide
Research direction
Start by comparing the requested interface with @rules_rust//util/label and the Bazel Label documentation linked in the issue. Define the scope of validation and where the new Python library belongs, then verify that it exposes a Label class whose constructor validates its input.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100