skillfed

demisto-py

"A Python library for the Demisto API"

demisto-py v3.3.1 104.6K downloads/30d#12,745 on PyPI73
Permissive license Apache-2.0 Active released

What it is and what it does

demisto-py is a Python wrapper around the Demisto REST API, generated from the Demisto Server 4.5.0 Swagger definition. It provides a structured interface for authenticating to Demisto or Cortex XSIAM platforms and performing operations like creating incidents and querying data. The library supports multiple authentication methods: API key, username/password (XSOAR only), and Cortex XSIAM's auth_id scheme. Configuration can be passed directly or via environment variables, making it suitable for both interactive scripts and automated deployments.

The package depends on standard HTTP and date/time utilities (urllib3, certifi, python-dateutil, tzlocal, six, setuptools) and is designed for developers building integrations, incident response automation, or security operations workflows. It is actively maintained and supports Python 3.10 through 3.14.

Use it for:

  • Automate incident creation and enrichment from external security tools into Demisto.
  • Build custom reporting tools that query incident and alert data from Demisto via API.
  • Integrate Demisto with third-party ticketing systems to synchronize security events.
  • Develop security automation that programmatically triggers Demisto operations based on external events.
  • Bulk-import historical incidents or test data into Demisto for training purposes.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A Python client library for the Demisto API, enabling programmatic interaction with Demisto and Cortex XSIAM platforms to create incidents and automate security workflows.

Yes. The package is actively maintained, has no known vulnerabilities, uses a permissive Apache-2.0 license, and offers low-friction installation. It is the official client for Demisto API integration and is suitable for any Python-based security automation or integration project targeting Demisto or Cortex XSIAM platforms.

Install

demisto-py on PyPI

pip

pip install demisto-py

uv

uv add demisto-py

poetry

poetry add demisto-py

Installing demisto-py

Before you install

Low friction install with standard dependencies. Actively maintained with last commit on 2026-07-29; supports Python 3.10 through 3.14.

License in practice

Apache-2.0 permissive license allows commercial and private use without restriction; suitable for proprietary integrations.

Quickstart

pip install demisto-py

import demisto_client

api_key = 'YOUR_API_KEY'
host = 'https://YOUR_DEMISTO_HOST'
api_instance = demisto_client.configure(base_url=host, api_key=api_key)

Requires valid Demisto API key (generated from Demisto Settings > API Keys) and network access to a Demisto or Cortex XSIAM server.

Verify before relying

  • Whether the library supports Demisto server versions prior to 4.5 or only 4.5 and later as stated.
  • Performance characteristics when handling large incident batches or high-frequency API calls.
  • Whether generated code is kept in sync with newer Demisto server versions automatically.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (<3.15,>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 6 — certifi, six, python-dateutil, urllib3, tzlocal, setuptools
Maintenance actively maintained — 95 days since the last release
Last repo commit
First released
Downloads 104,596/month — #12,745 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: demisto_py-3.3.1-py3-none-any.whl

Keywords: Swagger, Demisto API

Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPython

Tags

demisto api clientsecurity orchestration pythonincident management apicortex xsiam clientdemisto automation libraryapi client libraryincident creation
security-orchestrationapi-clientincident-management

More Software Development packages