{"library":"plyara","title":"plyara","description":"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.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install plyara"],"cli":null},"imports":["from plyara import plyara","from plyara import parse_source, is_yara_rule"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from plyara import plyara\n\nparser = plyara()\nyara_rules = '''\nrule ExampleRule\n{\n    strings:\n        $my_text_string = \"text here\"\n        $my_hex_string = { E2 34 A1 C8 23 FB }\n\n    condition:\n        $my_text_string or $my_hex_string\n}'''\nparsed = parser.parse_string(yara_rules)\nprint(parsed[0]['rule_name'])\nprint(parsed[0]['strings'])","lang":"python","description":"Parse a YARA rule string into a dictionary of rule components.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}