Registry / http-networking / prisma-sase

prisma-sase

JSON →
library6.6.2b1pypypi✓ verified 82d ago

Python3 SDK for the Prisma SASE AppFabric by Palo Alto Networks. Provides full API access to Prisma SASE (formerly CloudGenix) controller endpoints. Current version 6.6.2b1 (beta), released Feb 2026. Actively maintained with frequent minor version bumps.

pip install prisma-sase
INSTALL
IMPORT
SIG · PRISMA-SASE
P
prisma-sase
http-networkingpythonv6.6.2b1
Install
3.4s avg
Import
Disk
24MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v6.6.2b1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 26.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.4s · import 0.000s · 27MB
24MB installed
● package 24MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

API
from prisma_sase import API
from prisma_sase import SaseController
Interactive
from prisma_sase import Interactive
from prisma_sase import SaseController
PrismaSASEAPIError
from prisma_sase import PrismaSASEAPIError
from prisma_sase import SaseController

Authenticate and list tenants. Set env vars PRISMA_CLIENT_ID, PRISMA_CLIENT_SECRET, PRISMA_CONTROLLER, PRISMA_TOKEN_URL.

import os from prisma_sase import SaseController controller = SaseController( controller=os.environ.get('PRISMA_CONTROLLER', 'https://api.sase.paloaltonetworks.com'), client_id=os.environ.get('PRISMA_CLIENT_ID', ''), client_secret=os.environ.get('PRISMA_CLIENT_SECRET', ''), token_url=os.environ.get('PRISMA_TOKEN_URL', 'https://auth.apps.paloaltonetworks.com/oauth2/access_token') ) controller.authenticate() tenants = controller.get_tenants() print(tenants)
Debug
Known issues
breakingMajor version increments in API endpoints (e.g., prismasase_connections_configs v2.1→v3.0) may break SDK calls. Check the controller release notes before upgrading SDK.
fix
Review Changelog for API major version changes and update your code accordingly.
affects: >=6.4.2
gotchaThe `SaseController` constructor's `controller` parameter must be the full URL, not just hostname. Missing 'https://' will cause obscure connection errors.
fix
Always use full URL starting with https:// (e.g., 'https://api.sase.paloaltonetworks.com').
affects: all
gotchaToken URL is region-specific. Using the wrong token URL (e.g., Americas vs Europe) will fail silently. The SDK does not auto-detect region.
fix
Set token_url to the correct regional endpoint: Americas='https://auth.apps.paloaltonetworks.com/oauth2/access_token', Europe='https://auth-eu.apps.paloaltonetworks.com/oauth2/access_token'.
affects: all
Upgrade
Version history
6.6.2b1latest on PyPI · released Feb 12, 2026
Audit
Dependencies
requestsrequiredHTTP client for API calls
urllib3requiredHTTP connection pooling/retries
Agent activity
4 hits · last 30 days
node
4
Resources
prisma-sase — pip install prisma-sase · libregistry