--- id: pan-python version: "0.26.0" license: ISC license_treatment: permissive maintenance: active --- # pan-python — Multi-tool set for Palo Alto Networks PAN-OS, Panorama, WildFire and AutoFocus License: permissive · Maintenance: active · Downloads: 216.3K/mo ## What it is and what it does pan-python is a multi-interface toolkit for interacting with Palo Alto Networks security appliances and services. It wraps the XML APIs of PAN-OS firewalls, Panorama (centralized management), WildFire (malware analysis), AutoFocus (threat intelligence), and the licensing service into both Python libraries and standalone command-line tools. The package has no external dependencies, making it lightweight to deploy in automation scripts, CI/CD pipelines, or interactive management workflows. Developers use it to automate firewall configuration, retrieve operational status, submit files for malware analysis, query threat data, and manage licenses—all without building raw HTTP requests or parsing XML by hand. The dual interface (Python API and CLI) means you can integrate it into larger Python applications or call it directly from shell scripts and orchestration platforms. Use it for: - Automate firewall configuration changes and policy updates across multiple PAN-OS instances via Python scripts. - Query WildFire to analyze suspicious files and retrieve malware verdicts programmatically. - Build command-line dashboards or monitoring tools that pull operational metrics from Panorama or individual firewalls. - Integrate threat intelligence from AutoFocus into security workflows or SIEM systems. - Manage firewall licenses and licensing operations as part of infrastructure-as-code deployments. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides Python and command-line interfaces to Palo Alto Networks PAN-OS, Panorama, WildFire, AutoFocus, and licensing APIs for managing firewalls and security operations. Yes, if you manage Palo Alto Networks infrastructure. The package is actively maintained, has no external dependencies, and provides the standard Python interface to a widely-used firewall platform. No known vulnerabilities. Install it if you need to automate PAN-OS, Panorama, WildFire, or AutoFocus operations; skip it if you don't use Palo Alto Networks products. ## Install pip install pan-python uv add pan-python poetry add pan-python ## Installing pan-python Before you install: Low friction installation with no external runtime dependencies. Last release was 57 days ago; repository is active with recent commits and moderate community engagement (285 stars). License in practice: ISC license is permissive, allowing commercial and private use with minimal restrictions—suitable for most deployment scenarios. Quickstart: pip install pan-python from pan.xapi import PanXapi xapi = PanXapi(hostname='firewall.example.com', api_key='your-api-key') xapi.op(cmd='show system info') Requires Python 3.9 or later. Target firewall or Panorama instance must be accessible and have API access enabled. Verify before relying: - Whether the package supports all current PAN-OS versions and API endpoints beyond what the description lists. - Performance characteristics and rate-limiting behavior when working with large configurations or high-volume API calls. - Whether command-line tools are fully featured or have limitations compared to the Python API. ## Package facts - License: ISC (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 216.3K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags palo alto networks api python, pan-os firewall management, wildfire api client, autofocus threat intelligence, panorama firewall automation, firewall configuration management, paloaltonetworks cli tool, firewall-management, api-client, security-automation [View on SkillFed](https://skillfed.io/packages/pan-python) · [View on PyPI](https://pypi.org/project/pan-python/)