larzacl
Simple IP allow/deny lists, built on real CIDR matching.
For a script's own access control - gating your own server by IP range - not for scanning or targeting third-party hosts. Deny rules always win; an empty allow list is permissive by default, otherwise an address must match at least one allow rule.
larzscript pkg install acl
What you get
- Real CIDR matching, built on larzip
- Deny always wins over allow
- Permissive-by-default when no allow rules exist
- Exact-IP or CIDR-range rules, mixed freely
Try it
import "acl" as acl let list = acl.new() acl.allow(list, "10.0.0.0/8") acl.deny(list, "10.0.0.66") print(acl.check(list, "10.0.0.5")) print(acl.check(list, "10.0.0.66")) print(acl.check(list, "8.8.8.8"))
Output
true false false
Why it's in the Larz Stack
larzacl is a real Larzscript package (larzscript pkg install acl) - 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.