pyspark
Apache Spark Python API
Install
pyspark on PyPI
pip
pip install pysparkuv
uv add pysparkpoetry
poetry add pysparkPackage facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | high — source build required |
| Runtime dependencies | 1 — py4j |
| Maintenance | actively maintained — 30 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: pyspark-4.2.0.tar.gz
About pyspark
from the package's own PyPI description — quoted content, verbatim
Apache Spark
Spark is a unified analytics engine for large-scale data processing. It provides high-level APIs in Scala, Java, Python, and R, and an optimized engine that supports general computation graphs for data analysis. It also supports a rich set of higher-level tools including Spark SQL for SQL and DataFrames, pandas API on Spark for pandas workloads, MLlib for machine learning, GraphX for graph processing, and Structured Streaming for stream processing.
<https://spark.apache.org/>
Online Documentation
You can find the latest Spark documentation, including a programming guide, on the project web page
Python Packaging
This README file only contains basic information related to pip installed PySpark. This packaging is currently experimental and may change in future versions (although we will do our best to keep compatibility). Using PySpark requires the Spark JARs, and if you are building this from source please see the builder instructions at "Building Spark".
The Python packaging for Spark is not intended to replace all of the other use cases. This...
Read as markdown · JSON record · Source repository · Homepage
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
PySpark is Apache Spark's Python API for distributed data processing and analytics at scale, supporting SQL queries, machine learning, graph processing, and stream processing through high-level APIs.
High install friction due to large package size and Java/Spark JAR dependencies. Actively maintained with recent releases (30 days since last update), supporting Python 3.10–3.14.
Apache-2.0 permissive license allows broad commercial and private use with minimal restrictions, though derivative works must include license and copyright notices.
Usage
pip install pyspark==4.2.0
from pyspark.sql import SparkSession
spark = SparkSession.builder.appName('example').getOrCreate()
df = spark.createDataFrame([(1, 'a'), (2, 'b')], ['id', 'letter'])
df.show()
Requires Java Runtime Environment (JRE) and Spark JARs; this pip package is experimental and intended for cluster interaction, not standalone cluster setup.
Verdict: PySpark 4.2.0 is production-stable and actively maintained with no known vulnerabilities, but carries substantial install friction from its Java/Spark dependencies. Suitable for developers working with existing Spark clusters or large-scale distributed analytics, though the experimental nature of the pip packaging and Java requirement warrant careful integration planning.
Needs verification
- Community adoption and ecosystem maturity beyond the fact sheet's maintenance signals
- Whether the py4j dependency version is pinned and compatible across Spark cluster versions
- Performance characteristics and memory overhead of the pip-installed variant versus full Spark distribution
Similar packages
permissive · top 1,000 on PyPI
sqlglotpermissive · top 1,000 on PyPI
polars-runtime-32permissive · top 1,000 on PyPI
delta-sparkpermissive · top 1,000 on PyPI
cloudpicklepermissive · top 1,000 on PyPI
pandas-gbqpermissive · top 1,000 on PyPI
geopandaspermissive · top 1,000 on PyPI
dbt-corepermissive · top 1,000 on PyPI
daskpermissive · top 1,000 on PyPI
py4jpermissive · top 1,000 on PyPI