Skip to main content

No project description provided

Project description

xsoar-client

Python client library for Palo Alto XSOAR (formerly Demisto). Provides programmatic access to XSOAR servers for content pack management, case operations, and artifact handling.

This library is the foundation for xsoar-cli. Use xsoar-client directly when building custom integrations or automation scripts. For command-line usage, use xsoar-cli instead.

Installation

pip install xsoar-client

Requirements

  • Python 3.10 or higher
  • XSOAR/XSIAM server (version 6 or 8)
  • Valid API credentials

Configuration

Environment Variables

Authentication credentials are read from environment variables:

  • DEMISTO_API_KEY - XSOAR API key
  • DEMISTO_BASE_URL - XSOAR server URL (e.g., https://xsoar.example.com)
  • XSIAM_AUTH_ID - XSIAM authentication ID (XSOAR 8 only)

ClientConfig Parameters

  • server_version (required) - XSOAR server version (6 or 8)
  • custom_pack_authors - List of custom pack authors (default: [])
  • api_token - API token (default: from DEMISTO_API_KEY environment variable)
  • server_url - Server URL (default: from DEMISTO_BASE_URL environment variable)
  • xsiam_auth_id - XSIAM auth ID (default: from XSIAM_AUTH_ID environment variable)
  • verify_ssl - SSL verification, boolean or path to CA bundle (default: False)

Artifact Providers

Artifact providers handle storage and retrieval of custom content packs from cloud storage.

AWS S3

Requires AWS credentials configured via AWS CLI or standard AWS environment variables.

Azure Blob Storage

Requires AZURE_STORAGE_SAS_TOKEN environment variable.

Use Cases

  • Custom automation scripts for XSOAR operations
  • CI/CD pipeline integration for content deployment
  • Bulk operations across multiple XSOAR instances
  • Custom tooling built on top of XSOAR APIs

For CLI-based workflows and usage examples, see xsoar-cli.

License

Distributed under the MIT license.

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

xsoar_client-2.0.4.tar.gz (36.2 kB view details)

Uploaded Source

Built Distribution

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

xsoar_client-2.0.4-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file xsoar_client-2.0.4.tar.gz.

File metadata

  • Download URL: xsoar_client-2.0.4.tar.gz
  • Upload date:
  • Size: 36.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for xsoar_client-2.0.4.tar.gz
Algorithm Hash digest
SHA256 1cfc68b89801ea17686a9d7c568fd19610e07910d1b19a56f4a08e06e841a065
MD5 b100de09a301237de5f89c95fb4e64c8
BLAKE2b-256 111ab22cda2ab785cf4bbe6137eef2a82394ac2d89d084b71e6a3f454b6a3cbf

See more details on using hashes here.

Provenance

The following attestation bundles were made for xsoar_client-2.0.4.tar.gz:

Publisher: release.yml on tlium/xsoar-client

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

File details

Details for the file xsoar_client-2.0.4-py3-none-any.whl.

File metadata

  • Download URL: xsoar_client-2.0.4-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for xsoar_client-2.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c3aa41d5c82577a6e7e31e881405b261f1c943255b952314cf402608ef8c6fb3
MD5 84b3e1d1eca3f469b62c39c0a649f8bb
BLAKE2b-256 f3bd914130c886203762281a9467b9e488b56e0d9d9d1cf8ccf7e038647f058a

See more details on using hashes here.

Provenance

The following attestation bundles were made for xsoar_client-2.0.4-py3-none-any.whl:

Publisher: release.yml on tlium/xsoar-client

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