Skip to main content

Python SDK for Palo Alto Networks Strata Cloud Manager.

Project description

Strata Cloud Manager SDK

pan-scm-sdk

codecov Build Status PyPI version Python versions License

Python SDK for Palo Alto Networks Strata Cloud Manager. Provides OAuth2-authenticated CRUD operations on firewall configuration objects — addresses, security rules, NAT rules, and 80+ resource types — via a unified client interface.

Installation

pip install pan-scm-sdk

Requires Python 3.10+.

Quick Start

from scm.client import Scm

# Initialize with OAuth2 credentials
client = Scm(
    client_id="your_client_id",
    client_secret="your_client_secret",
    tsg_id="your_tsg_id",
)

# Create an address object
client.address.create({
    "name": "web-server",
    "ip_netmask": "10.0.1.100/32",
    "description": "Production web server",
    "folder": "Texas",
})

# List all addresses in a folder
addresses = client.address.list(folder="Texas")
for addr in addresses:
    print(f"{addr.name}: {addr.ip_netmask or addr.fqdn}")

Documentation

For comprehensive guides, API reference, and examples for all 80+ supported resources, visit the full documentation site:

https://cdot65.github.io/pan-scm-sdk/

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/your-feature)
  3. Run quality checks (make quality) and tests (make test)
  4. Open a Pull Request

License

Apache 2.0 — see LICENSE for details.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pan_scm_sdk-0.13.0.tar.gz (187.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pan_scm_sdk-0.13.0-py3-none-any.whl (499.7 kB view details)

Uploaded Python 3

File details

Details for the file pan_scm_sdk-0.13.0.tar.gz.

File metadata

  • Download URL: pan_scm_sdk-0.13.0.tar.gz
  • Upload date:
  • Size: 187.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pan_scm_sdk-0.13.0.tar.gz
Algorithm Hash digest
SHA256 c775de831f8e12b29c38090ee37f4c22413ebc25c8bff4b16c0ac49c5e28076a
MD5 848b4abd034b8b37bc5dee31cf214160
BLAKE2b-256 1853c7eb0ab0b6d049d0ebd05ad594c3dbe93f252630b3988c7ac9db0c8b7547

See more details on using hashes here.

Provenance

The following attestation bundles were made for pan_scm_sdk-0.13.0.tar.gz:

Publisher: publish.yml on cdot65/pan-scm-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pan_scm_sdk-0.13.0-py3-none-any.whl.

File metadata

  • Download URL: pan_scm_sdk-0.13.0-py3-none-any.whl
  • Upload date:
  • Size: 499.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pan_scm_sdk-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e6cdf6c802362f59fe69f1272349bd8451823844b1c267137feba3417ce4eef
MD5 0f0f81a6858489df3ce7f48aea64ae2f
BLAKE2b-256 04cdf1c79cfc06a2ab011b6eb05c6bb4c4add2c48773d9aebabb69c4e5809f12

See more details on using hashes here.

Provenance

The following attestation bundles were made for pan_scm_sdk-0.13.0-py3-none-any.whl:

Publisher: publish.yml on cdot65/pan-scm-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page