skillfed

pyspark-client

Python Spark Connect client for Apache Spark

pyspark-client v4.2.0 2.3M downloads/30d#3,115 on PyPI43,872
Permissive license Apache-2.0 Active released

What it is and what it does

pyspark-client is the Python Spark Connect client—a remote interface to Apache Spark clusters that lets you submit distributed data processing jobs from Python without needing a local Spark installation. It connects to an existing Spark cluster (standalone, YARN, or Kubernetes) and provides access to Spark SQL, DataFrames, MLlib, and Structured Streaming through a Python API.

The package depends on pandas, pyarrow, grpcio, grpcio-status, googleapis-common-protos, zstandard, numpy, and pyyaml to handle data serialization, gRPC communication, and numerical computation. It is suitable for interacting with production clusters but does not include tools to set up a standalone cluster itself. The documentation notes that the Python packaging is experimental and may change, and that client and cluster versions must match to avoid runtime errors.

Use it for:

  • Run SQL queries and DataFrame transformations against a remote Spark cluster from a Python notebook or script.
  • Process large datasets distributed across a cluster without installing full Spark locally.
  • Build machine learning pipelines using MLlib on data too large for a single machine.
  • Stream and process real-time data using Structured Streaming on a shared Spark cluster.
  • Integrate Spark analytics into Python applications that connect to an existing enterprise cluster.

Worth the install?

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

Python client for connecting to Apache Spark clusters via Spark Connect, enabling distributed data processing and analytics from Python without requiring local Spark JARs.

Yes, if you have access to a running Spark cluster and need Python-based analytics at scale. The high install friction and experimental packaging status are offset by active maintenance, permissive licensing, and broad Python version support (3.10 through 3.14). Critical caveat: ensure your client version matches your cluster version exactly, and verify that all required features are supported via Spark Connect before committing to production use.

Install

pyspark-client on PyPI

pip

pip install pyspark-client

uv

uv add pyspark-client

poetry

poetry add pyspark-client

Installing pyspark-client

Before you install

High install friction due to 8 runtime dependencies including pandas, pyarrow, and grpcio. Active maintenance with recent releases, though packaging is noted as experimental and version matching with Spark clusters is critical to avoid runtime errors.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions, though derivative works must retain attribution and license notices.

Quickstart

pip install pyspark-client

from pyspark.sql import SparkSession

spark = SparkSession.builder.remote("sc://hostname:port").getOrCreate()
df = spark.sql("SELECT * FROM table")

Requires a running Spark cluster with Spark Connect server; Python 3.10 or later; client and cluster versions must match exactly to avoid runtime errors.

Verify before relying

  • Whether the experimental packaging status affects production readiness or API stability guarantees.
  • Specific performance characteristics or latency overhead of remote Spark Connect vs. local PySpark.
  • Whether all Spark SQL, MLlib, and Structured Streaming features are fully supported via the Connect client.
  • Exact version compatibility requirements between pyspark-client and Spark cluster deployments.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction high — source build required
Runtime dependencies 8 — pandas, pyarrow, grpcio, grpcio-status, googleapis-common-protos, zstandard, numpy, pyyaml
Maintenance actively maintained — 31 days since the last release
Last repo commit
First released
Downloads 2,348,591/month — #3,115 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pyspark_client-4.2.0.tar.gz

Development Status :: 5 - Production/StableProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonTyping :: Typed

Tags

spark connect python clientdistributed data processing pythonspark cluster remote connectionpyspark distributed computingspark sql dataframes pythonstream processing analyticsremote spark analytics
distributed-computingdata-analyticsspark-connect

More Distributed Computing packages