pyspark-client
Python Spark Connect client for Apache Spark
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-clientuv
uv add pyspark-clientpoetry
poetry add pyspark-clientInstalling 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
Tags
More Distributed Computing packages
gRPC Python is an HTTP/2-based RPC framework…
permissive · top 100 on PyPI
execnetexecnet lets you spawn and communicate with…
permissive · top 1,000 on PyPI
cloudpickleCloudpickle extends Python's standard pickle…
permissive · top 1,000 on PyPI
smart-openProvides a unified, open()-compatible Python…
permissive · top 1,000 on PyPI
portalockerPortalocker provides cross-platform file…
permissive · top 1,000 on PyPI
rayRay is a distributed computing framework that…
permissive · top 1,000 on PyPI
livyA Python client for Apache Livy that enables…
permissive · top 15,000 on PyPI
pysparkPySpark provides Python bindings to Apache…
permissive · top 1,000 on PyPI
dune-clientA Python client for querying and managing Dune…
permissive · top 15,000 on PyPI
spark-sklearnDistributes scikit-learn model training and…
permissive · top 15,000 on PyPI
pyspark-pandasProvides tools for distributing Pandas…
unclear · top 5,000 on PyPI
dataproc-spark-connectWraps Apache Spark Connect to let Python…
permissive · top 15,000 on PyPI
repartipyRepartiPy calculates optimal partition counts…
permissive · top 15,000 on PyPI
raydpRayDP runs Apache Spark on Ray and integrates…
permissive · top 15,000 on PyPI
joblibsparkRegisters Apache Spark as a distributed backend…
permissive · top 15,000 on PyPI
pyspark-data-sourcesProvides custom Apache Spark data sources using…
permissive · top 15,000 on PyPI