larzflags
Feature flags & rollouts.
Feature flags with deny/allow lists, targeting rules, stable percentage rollouts via deterministic bucketing, and weighted variants for A/B tests — reproducible by design.
larzscript pkg install flags
What you get
- Deny/allow + rules
- Stable % rollouts
- Weighted variants (A/B)
- Deterministic bucketing
Try it
import "flags" as flags
let f = flags.rule("new-checkout", 25)
print(flags.enabled(f, "user-42"))
let v = flags.variant("button-color", {"blue": 50, "green": 50}, "user-42")
print(v)Output
false blue
Why it's in the Larz Stack
larzflags is a real Larzscript package (larzscript pkg install flags) - money-native, zero dependencies, the same language as the rest of the estate, not a separate Python runtime. It composes with the rest of the Larz Stack and the Larz framework.