Python SDK for Palo Alto Networks Prisma Access Insights 3.0 API
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pan_insights_sdk-0.2.2.tar.gz.
File metadata
- Download URL: pan_insights_sdk-0.2.2.tar.gz
- Upload date:
- Size: 39.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c870b8f786653427bbd8adfc4a491c57a277ccd6ad53b7461b88979345f99703
|
|
| MD5 |
da730abc4771cd409393adaa99b00ba4
|
|
| BLAKE2b-256 |
804008762c45297f9410e8c146728f3880c7d1e3128291fe0a65fa4001272aec
|
Provenance
The following attestation bundles were made for pan_insights_sdk-0.2.2.tar.gz:
Publisher:
publish.yml on ancoleman/insights-sdk-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pan_insights_sdk-0.2.2.tar.gz -
Subject digest:
c870b8f786653427bbd8adfc4a491c57a277ccd6ad53b7461b88979345f99703 - Sigstore transparency entry: 1248020210
- Sigstore integration time:
-
Permalink:
ancoleman/insights-sdk-cli@29059a7fdba975ddf5de7dae6c6d68bb1a415c54 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/ancoleman
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@29059a7fdba975ddf5de7dae6c6d68bb1a415c54 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pan_insights_sdk-0.2.2-py3-none-any.whl.
File metadata
- Download URL: pan_insights_sdk-0.2.2-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4400bf1cb3d11517528b40cc24cc4c1932a5a425018cb1418227aebd9e46e659
|
|
| MD5 |
09d9dfa5a39b06ceb0f9cf22ee7b3fb7
|
|
| BLAKE2b-256 |
c8853f7e46c12afeb73da7f604916e3ff2658c33f85e803ef831f47a967af59a
|
Provenance
The following attestation bundles were made for pan_insights_sdk-0.2.2-py3-none-any.whl:
Publisher:
publish.yml on ancoleman/insights-sdk-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pan_insights_sdk-0.2.2-py3-none-any.whl -
Subject digest:
4400bf1cb3d11517528b40cc24cc4c1932a5a425018cb1418227aebd9e46e659 - Sigstore transparency entry: 1248020302
- Sigstore integration time:
-
Permalink:
ancoleman/insights-sdk-cli@29059a7fdba975ddf5de7dae6c6d68bb1a415c54 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/ancoleman
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@29059a7fdba975ddf5de7dae6c6d68bb1a415c54 -
Trigger Event:
release
-
Statement type: