Skip to main content

Splunk Power Client

A modern, scriptable command-line client for Splunk power users and administrators.

PyPI Python License Tests Docs Code style: Ruff uv Conventional Commits semantic-release

spc is a Python CLI that streamlines day-to-day Splunk operations — uploading lookups, managing saved searches, dispatching jobs, editing configurations — through a fast, scriptable, multi-instance command line.

📚 Documentation · 📝 Changelog · 🤝 Contributing

[!WARNING] 🚧 Work in progress — spc is still under active development. Expect breaking changes, rough edges, and bugs. Use it with caution in production environments — and please open an issue if you hit one.


Features

  • Lookups — Upload from CSV, JSON, or Excel into Lookup CSV or KVStore. Synchronise a lookup from one Splunk instance to another in a single command.
  • Saved searches — Reschedule in bulk, dispatch in the past with trigger actions (replay), or backfill over an arbitrary time window.
  • Jobs — List, inspect, and manage search jobs.
  • Configurations — Update Splunk configuration files quickly.
  • Users — Create multiple local users from a definition file.
  • Secrets — Manage Splunk secrets safely.
  • Ingest — Stream events into Splunk programmatically.
  • Multi-instance — Switch seamlessly between Splunk environments (dev / staging / prod) from a single profile-aware configuration.

Installation

# As a standalone tool
uv tool install splunk-power-client

# Or with pip
pip install splunk-power-client

Requires Python 3.13+.

Quickstart

# Discover commands
spc --help

# Manage instances (add / list / update / remove)
spc instances --help

# Show the active Splunk instance and its details
spc info

For the full command reference, examples, and recipes, see the documentation.

Commands

Command Status What it does
instances ✅ Add, list, and switch between Splunk instances
info ✅ Show details of the active Splunk instance
lookups ✅ Upload, synchronise, list, delete CSV / KVStore lookups
secrets ✅ Manage Splunk secrets
jobs ✅ List and inspect search jobs
debug/refresh ✅ Refresh Splunk configuration without restart
searches 🚧 Reschedule, dispatch, replay saved searches
configs 🚧 Bulk-update Splunk configuration files
users 🚧 Create multiple local users
ingest 🚧 Stream events into Splunk

Legend: ✅ available · 🚧 work in progress

Development

This project uses uv for everything — dependency management, building, publishing.

git clone https://github.com/nicolas-rdgs/Splunk-Power-Client.git
cd Splunk-Power-Client

uv sync --all-extras --dev
uv run pre-commit install
uv run pre-commit install --hook-type commit-msg

Common commands:

uv run ruff check .              # lint
uv run ruff format --check .     # format check
uv run pytest                    # tests
uv run mkdocs serve              # preview docs locally
uv build                         # build wheel + sdist

The full contribution flow — Conventional Commits, PR conventions, and the automated release pipeline — is documented in CONTRIBUTING.md.

Development methodology

The core architecture, feature design, and the bulk of spc are written by hand. AI assistance (Claude, by Anthropic) is used deliberately and under human review to accelerate well-defined, lower-creativity work and to drastically improve quality and reduce development time. Concretely, AI helps with:

  • Refactoring and naming consistency
  • Scaffolding repetitive code (model definitions, command boilerplate)
  • Improving test coverage and edge-case handling
  • Writing and polishing documentation
  • Setting up and maintaining the CI/CD pipeline

Every change goes through a Pull Request and a human review before reaching main. Nothing is committed unreviewed.

Release process

Releases are fully automated. Merging a Pull Request with a Conventional Commits-formatted title to main triggers:

  1. Test — ruff check, ruff format --check, pytest --cov
  2. Version — python-semantic-release decides the next SemVer, updates pyproject.toml and CHANGELOG.md, tags vX.Y.Z
  3. Build & publish — uv build, then uv publish --trusted-publishing always (OIDC, no long-lived tokens)
  4. GitHub Release — with the changelog section and a Contributors list

See CONTRIBUTING.md for the human side of this flow.

Acknowledgements

Built on Splunk Enterprise SDK for Python, Typer, Pydantic, Rich, and uv.

License

Released under the MIT License — © 2025 Nicolas Rodrigues.

Metadata

Release files for splunk-power-client 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for splunk-power-client 0.1.2
File Size Uploaded Provenance Actions
splunk_power_client-0.1.2.tar.gz 9.6 MB Without provenance Details for splunk_power_client-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for splunk-power-client 0.1.2
File Interpreter ABI Platform Actions
splunk_power_client-0.1.2-py3-none-any.whl Python 3 none any Details for splunk_power_client-0.1.2-py3-none-any.whl

Total release size: 9.7 MB

Release files / splunk_power_client-0.1.2.tar.gz

Download URL splunk_power_client-0.1.2.tar.gz
Size 9.6 MB
Tags Source
SHA-256 checksum
How to use checksums
e7ba6ed4b2212bbdfb6797060b18a1a53cd7196d210001bb8c5f6d24f330b84c
BLAKE2b-256 checksum
How to use checksums
3d7e9bf773f66ed891cdb8e70688dccec1813430d2ea74e666210eacc247d456
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / splunk_power_client-0.1.2-py3-none-any.whl

Download URL splunk_power_client-0.1.2-py3-none-any.whl
Size 55.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
352792fcfc880a68e84d6086a246dedb4377a7fe5c56e7ad41278274c3045b3d
BLAKE2b-256 checksum
How to use checksums
1e12ef536060cf6d58c95a9f0133cc83c530e25d4a95a5dbe633902ccb036bed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for splunk-power-client 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page