Skip to main content

Xpanse Python SDK

https://github.com/PaloAltoNetworks/cortex-xpanse-python-sdk/blob/main/docs/_source/_static/xpanse_banner.png?raw=true https://img.shields.io/badge/code%20style-black-000000.svg https://img.shields.io/badge/python-3.6%20%7C%203.7%20%7C%203.8-blueviolet https://img.shields.io/badge/code%20style-black-000000.svg https://img.shields.io/pypi/l/xpanse https://img.shields.io/github/contributors/PaloAltoNetworks/cortex-xpanse-python-sdk

Overview

This library is intended to be an interface to the Xpanse Expander API.

Install

pip install xpanse

Requirements

Python 3.6+

Usage

Documentation

# Import client
from xpanse.client import ExClient

# initialize client
client = ExClient()

# get ip_range iterator object and dump to a list
ranges = client.assets.ip_range.list().dump()

You can view more example code in the examples directory.

Configuration

A valid Bearer token or JWT is required for use. Bearer tokens are suggested as JWTs have a limited lifespan.

Logging

Logging is handled through the python logging package. To enable different levels of verbosity in your scripts you can do the following:

import logging
logging.basicConfig(level=logging.DEBUG)

You can read more at https://docs.python.org/3/library/logging.html.

Metadata

Release files for xpanse 1.0.9.post17

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xpanse 1.0.9.post17
File Size Uploaded Provenance Actions
xpanse-1.0.9.post17.tar.gz 87.5 kB Without provenance Details for xpanse-1.0.9.post17.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xpanse 1.0.9.post17
File Interpreter ABI Platform Actions
xpanse-1.0.9.post17-py3-none-any.whl Python 3 none any Details for xpanse-1.0.9.post17-py3-none-any.whl

Total release size: 208.4 kB

Release files / xpanse-1.0.9.post17.tar.gz

Download URL xpanse-1.0.9.post17.tar.gz
Size 87.5 kB
Tags Source
SHA-256 checksum
How to use checksums
badb9ec9c8d9e237a8135e2651e8e6978ab25d09712acd09cc6e897ec5e10dbc
BLAKE2b-256 checksum
How to use checksums
b844f883f3a43eba88b42da56a358985de5a01c40368bb94939d45ad01344cf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / xpanse-1.0.9.post17-py3-none-any.whl

Download URL xpanse-1.0.9.post17-py3-none-any.whl
Size 120.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
15ecc543e85d0b55fea3a245475052123c30ad1c35331358ac234abfc4c2c247
BLAKE2b-256 checksum
How to use checksums
3ba1bf74ad0ea07c3ff2599404744399d9ff5038f12c284278acb03655b5359d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Security for xpanse 1.0.9.post17

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page