--- id: plyara version: "2.2.8" license: unclear license_treatment: permissive maintenance: dormant --- # plyara — Parse YARA rules License: permissive · Maintenance: dormant · Downloads: 135.2K/mo ## What it is and what it does Plyara is a lexer and parser that converts YARA rule files into structured Python dictionaries, making it possible to programmatically inspect, transform, and analyze malware detection rules. It exposes both a library API for use in Python applications and a command-line tool for batch processing rule files into JSON. The package has no external runtime dependencies and requires only Python 3.10 or later. Typical use cases include extracting indicators from rule sets, updating rule metadata in bulk, linting or validating rule syntax, analyzing rule dependencies, and building tooling around YARA rule management. The parser preserves both the parsed structure (rule name, strings, conditions, metadata) and the raw text of each section, allowing users to work with either representation depending on their needs. Use it for: - Extract indicators (file hashes, IP addresses, domains) from a corpus of YARA rules for threat intelligence. - Validate and lint YARA rules in bulk to catch syntax errors or policy violations before deployment. - Analyze rule dependencies and imports to understand which rules depend on external modules. - Transform rule metadata across large rule sets (e.g., update threat levels or add tags programmatically). - Build custom rule analysis tools that operate on parsed rule dictionaries rather than raw text. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Parses YARA rule files into Python dictionary representations, enabling programmatic analysis and bulk transformation of malware detection rules. Yes, if you work with YARA rules and need to parse or transform them programmatically. The package is stable, has no dependencies, and installs easily. Maintenance is dormant but not abandoned—the repository is still active. Be aware that the last release was over a year ago, so if you need recent bug fixes or features, check the repository's open issues first. ## Install pip install plyara uv add plyara poetry add plyara ## Installing plyara Before you install: Low friction install with no runtime dependencies. Maintenance is dormant—last release was 554 days ago—but the repository remains active with recent commits and the package is marked Production/Stable. License in practice: Licensed under Apache (permissive), meaning you can use, modify, and distribute plyara freely in commercial and private projects with minimal restrictions. Quickstart: pip install plyara import plyara parser = plyara.Plyara() rules = parser.parse_string('rule MyRule { strings: $a="1" condition: false }') print(rules[0]['rule_name']) Requires Python 3.10 or later. Verify before relying: - Whether the parser handles all YARA syntax variants or only a subset of the YARA specification. - Performance characteristics when parsing very large rule files or rule sets. ## Package facts - License: not declared (permissive) - Python support: supports_current - Install friction: low - Maintenance: dormant - Downloads: 135.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags yara rule parser, parse yara rules python, yara to dictionary, yara rule analysis, bulk yara processing, yara rule extraction, yara linting, yara-rules, malware-analysis, rule-parsing [View on SkillFed](https://skillfed.io/packages/plyara) · [View on PyPI](https://pypi.org/project/plyara/)