Python client for the OWASP ZAP (Zed Attack Proxy) API. Version 0.5.0 supports ZAP 2.15+. Released irregularly; maintained by the ZAP project.
pip install zaproxyVerified import paths — ran on the pinned version, not inferred.
Connect to local ZAP instance (must be running on port 8080) and call the core version endpoint.
Always provide the proxy argument: ZAPv2(proxy={'http': 'http://127.0.0.1:8080', 'https': '...'})Set ZAP_API_KEY environment variable or pass apikey='' to ZAPv2 for unauthenticated access.
Use 'from zapv2 import ZAPv2' instead of 'import zaproxy'.