Prisma Access Insights SDK
Python SDK and CLI for querying the Palo Alto Networks Prisma Access Insights 3.0 API.
Query users, applications, sites, and security events from your Prisma Access deployment for reporting, monitoring, and analytics.
Installation
pip
pip install pan-insights-sdk
Docker
docker build -t insights .
docker run --rm insights --help
From source
git clone https://github.com/ancoleman/insights-sdk-cli.git
cd insights-sdk-cli
make dev
See Installation Guide for all options and CI/CD setup.
Quick Start
1. Set Credentials
export SCM_CLIENT_ID=your-service-account@tsg.iam.panserviceaccount.com
export SCM_CLIENT_SECRET=your-secret
export SCM_TSG_ID=your-tsg-id
2. CLI Usage
insights test # Test connection
insights users list agent # List users (last 24h)
insights users count agent # Connected user count
insights apps list # List applications
insights sites traffic # Site traffic
insights --help # All commands
3. Python SDK
from insights_sdk import InsightsClient
with InsightsClient(
client_id="your-client-id",
client_secret="your-secret",
tsg_id="your-tsg-id",
) as client:
users = client.get_agent_users(hours=24)
print(f"Found {len(users.get('data', []))} users")
Documentation
| Guide | Description |
|---|---|
| Installation | pip, Docker, source, and CI/CD setup |
| CLI Reference | Complete command reference |
| SDK Guide | Python SDK usage and filtering |
Command Groups
| Group | Description |
|---|---|
insights users |
User queries (list, count, sessions, devices) |
insights apps |
Application queries |
insights sites |
Site queries |
insights security |
PAB security events |
insights monitoring |
Monitored user metrics |
insights accelerated |
Accelerated app metrics |
Development
make help # Show all targets
make dev # Install with dev deps
make test # Run tests
make lint # Run linters
make format # Format code
make build # Build Docker image
License
MIT
Metadata
Release files for pan-insights-sdk 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pan_insights_sdk-0.3.1.tar.gz | 40.9 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pan_insights_sdk-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 62.3 kB
Release files / pan_insights_sdk-0.3.1.tar.gz
| Download URL | pan_insights_sdk-0.3.1.tar.gz |
|---|---|
| Size | 40.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0e2151c2f8a507dd9c7612e8cd3060f5dd99052d59081395b006aee3d3a3ee4e
|
|
BLAKE2b-256 checksum How to use checksums |
0c05f8881f4a4511baeaa0a306b7e822dccff61f1ea03ee41f6e62aafc9decc7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 7, 2026.
Transparency logRelease files / pan_insights_sdk-0.3.1-py3-none-any.whl
| Download URL | pan_insights_sdk-0.3.1-py3-none-any.whl |
|---|---|
| Size | 21.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
593c430f93e0ece83628304dedd05b4547a968b15398997ee018888525581f42
|
|
BLAKE2b-256 checksum How to use checksums |
39cffd4b4d73d1818ec8e157a37fa747ea0c82c5970da9c0c8298841b0ad1192
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 7, 2026.
Transparency logSecurity for pan-insights-sdk 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for pan_insights_sdk-0.3.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 7, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.