splunk-sdk
Splunk Software Development Kit for Python
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-sdkuv
uv add splunk-sdkpoetry
poetry add splunk-sdkInstalling 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
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
splunk-handlerA Python logging handler that sends log events…
permissive · top 5,000 on PyPI
signalflow-client-pythonA Python client library that connects to Splunk…
permissive · top 15,000 on PyPI
signalfxPython client library for sending metrics,…
permissive · top 15,000 on PyPI
tencentcloud-sdk-pythonOfficial SDK for accessing Tencent Cloud…
permissive · top 15,000 on PyPI
tencentcloud-sdk-python-commonProvides Python bindings and common utilities…
permissive · top 5,000 on PyPI
splunk-hec-handlerIntegrates Python logging with Splunk's HTTP…
permissive · top 15,000 on PyPI
podmanProvides Python bindings to the Podman…
permissive · top 15,000 on PyPI
kernelProvides a Python client library for the Kernel…
permissive · top 15,000 on PyPI
splunk-opentelemetryAutomatically instruments Python applications…
permissive · top 15,000 on PyPI
google-cloud-containerProvides a Python client library for…
permissive · top 1,000 on PyPI