--- id: splunk-sdk version: "3.0.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # splunk-sdk — Splunk Software Development Kit for Python License: permissive · Maintenance: active · Downloads: 1.7M/mo ## 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 above — 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 pip install splunk-sdk uv add splunk-sdk 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_current - Install friction: low - Maintenance: active - Downloads: 1.7M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags splunk rest api client, splunk python sdk, splunk enterprise automation, splunk search commands, splunk modular inputs, splunk app development, splunk data query, splunk-integration, rest-api-client, data-platform [View on SkillFed](https://skillfed.io/packages/splunk-sdk) · [View on PyPI](https://pypi.org/project/splunk-sdk/)