skillfed

splunk-sdk

Splunk Software Development Kit for Python

splunk-sdk v3.0.0 1.7M downloads/30d#3,646 on PyPI741
Permissive license Apache-2.0 Active released

What it is and what it does

The Splunk Enterprise SDK for Python is the official client library for developers building applications and integrations against Splunk's REST API. It abstracts HTTP communication and authentication, allowing you to programmatically search data, manage saved searches, configure inputs, and build custom search commands and modular inputs. The SDK is designed as the primary way to interact with Splunk from Python code, whether you're writing standalone scripts, building Splunk Apps, or integrating Splunk into larger systems.

The package includes modules for client connections, custom search commands, modular inputs, and AI capabilities. It supports multiple authentication methods and provides helpers for common tasks. The library has no external runtime dependencies, making it lightweight to deploy, though it requires Python 3.13 or newer.

Use it for:

  • Automate searches and retrieve results programmatically from a Splunk instance for reporting or alerting workflows.
  • Build custom Splunk Apps with modular inputs that ingest data from external sources into Splunk.
  • Develop custom search commands that extend Splunk's search language with domain-specific logic.
  • Integrate Splunk data queries into Python applications for real-time monitoring or analytics.
  • Manage Splunk configuration and metadata via API rather than the web UI.

Worth the install?

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

Provides a Python client library for programmatically interacting with Splunk Enterprise and Cloud via their REST API, enabling search execution, data management, and app development.

Yes. The SDK is actively maintained, has no external dependencies, and is the official way to programmatically interact with Splunk. Install it if you need to automate Splunk tasks, build apps, or integrate Splunk into Python workflows. The Python 3.13 requirement is the main constraint—verify your environment supports it before installing.

Install

splunk-sdk on PyPI

pip

pip install splunk-sdk

uv

uv add splunk-sdk

poetry

poetry add splunk-sdk

Installing splunk-sdk

Before you install

Low friction installation with no runtime dependencies. Actively maintained with recent commits and a mature codebase since 2011-08-09. Requires Python 3.13 or newer.

License in practice

Licensed under Apache-2.0 (permissive), allowing use in commercial and open-source projects with minimal restrictions beyond attribution.

Quickstart

pip install splunk-sdk

import splunk-sdk

# Connect to Splunk instance with username and password
service = client.connect(host='localhost', username='admin', password='password', autologin=True)

Requires Python 3.13 or newer and a running Splunk Enterprise or Cloud instance to connect to.

Verify before relying

  • Whether the AI capabilities are production-ready or still experimental.
  • Performance characteristics when handling large result sets or high-frequency API calls.
  • Compatibility with Splunk Cloud versions and any API differences from Enterprise.
  • Specific authentication method requirements and supported token types.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.13)
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance actively maintained — 94 days since the last release
Last repo commit
First released
Downloads 1,695,846/month — #3,646 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: splunk_sdk-3.0.0-py3-none-any.whl

Keywords: splunk, sdk

Development Status :: 6 - MatureEnvironment :: Other EnvironmentIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.13Topic :: Software Development :: Libraries :: Application FrameworksTopic :: Software Development :: Libraries :: Python Modules

Tags

splunk rest api clientsplunk python sdksplunk enterprise automationsplunk search commandssplunk modular inputssplunk app developmentsplunk data query
splunk-integrationrest-api-clientdata-platform

More Python Modules packages