SigmaHQ / pySigma

Python library to parse and convert Sigma rules into queries (and whatever else you could imagine)
GNU Lesser General Public License v2.1
380 stars 95 forks source link

Allow SigmaRuleTag objects to be compared with their string represent… #247

Closed Res260 closed 1 month ago

Res260 commented 1 month ago

Allow SigmaRuleTag objects to be compared with their string representation (namespace.name)

This allows for stuff like

if "attack.discovery" in rule.tags:
  do_something()

Which is much more user-friendly than doing a for-loop to do such comparisons :)