plyara is a YARA rule parser that takes YARA rule text and returns a dictionary with metadata, strings, conditions, and other components. Current version 2.2.8, supports Python >=3.10. Released on an as-needed basis for bugfixes and minor improvements.
pip install plyaraVerified import paths — ran on the pinned version, not inferred.
Parse a YARA rule string into a dictionary of rule components.
If you rely on the exact hash output, use `parser.store_logic_hash_versions = True` before parsing.
Upgrade to >=2.2.5 or ensure your rules don't have trailing comments between rule blocks.
Use version >=2.2.1 if you need to set `store_raw_sections=False`.
No dependency data recorded yet.