{"library":"parsedmarc","title":"parsedmarc","description":"A Python package and CLI for parsing aggregate and forensic DMARC reports. Current version 9.10.3, requires Python >=3.10. Released regularly with new features and bug fixes.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install parsedmarc","pip install parsedmarc[elasticsearch,geoip2]"],"cli":{"name":"parsedmarc","version":"9.11.2"}},"imports":["from parsedmarc import parse_aggregate_report_xml","from parsedmarc import parse_forensic_report_xml","from parsedmarc import ParsedReport"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import os\nfrom parsedmarc import parse_aggregate_report_xml\n\n# Example: parse an aggregate DMARC report from a file\nwith open('aggregate_report.xml', 'r') as f:\n    xml_data = f.read()\n\nparsed = parse_aggregate_report_xml(xml_data)\nprint(parsed)\n\n# If using IMAP, ensure credentials are set (optional)\nos.environ.get('IMAP_HOST', 'imap.example.com')","lang":"python","description":"Minimal example to parse an aggregate DMARC XML report.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}