Skip to main content

Sparkless — PySpark-compatible DataFrames without the JVM

Install: pip install "sparkless>=4,<5"

Use Sparkless to run PySpark-style unit tests and local pipelines 10–100× faster in CI. Powered by the open-source Rust engine robin-sparkless (Polars execution).

Not a full cluster replacement. See Before you adopt for UDF, parity, and production caveats.

CI PyPI crates.io docs.rs Documentation License: MIT


Choose your path

I want to… Start here
Use Sparkless in Python (tests, local pipelines) python/README.md · pip install "sparkless>=4,<5"
Embed the Rust engine docs/QUICKSTART.md · robin-sparkless = "4" on crates.io
Contribute CONTRIBUTING.md · make check-full

Full documentation: Read the Docs


Quick start (Python)

# Swap the import—everything else stays the same.
from sparkless.sql import SparkSession, functions as F

spark = SparkSession.builder.app_name("demo").get_or_create()
df = spark.createDataFrame([{"x": 1}, {"x": 2}])
df.filter(F.col("x") > 1).show()
pip install "sparkless>=4,<5"

More: Python getting started · Testing guide · FAQ


Why Sparkless (Python)?

  • Familiar API — SparkSession, DataFrame, Column, and PySpark-like functions so you can reuse patterns without the JVM.
  • Fast local execution — Runs natively (no JVM) and uses Polars for IO, expressions, and aggregations.
  • Test the same suite two ways — Use sparkless.testing to run tests with Sparkless (fast) or real PySpark (parity checks).
  • Optional “Spark-like” features — SQL, temp/global temp views, saveAsTable, Delta, and JDBC (see python/README.md).

Features (Python surface)

Area What’s included
Core SparkSession, DataFrame, Column, functions
IO CSV, Parquet, JSON, Delta
Expressions col, lit, when/otherwise, casts, null handling
Aggregates count, sum, avg, min, max, groupBy().agg()
Window row_number, rank, dense_rank, lag, lead, first_value, last_value via .over()
Arrays, strings, JSON Common PySpark functions (explode, regexp_*, get_json_object, from_json, to_json, …)
SQL + views spark.sql, temp/global temp views, saveAsTable, catalog().listTables()
JDBC Read/write via spark.read.jdbc(...) / df.write.jdbc(...)

Parity: 200+ fixtures validated against PySpark. Before you adopt · PySpark differences · Parity status


Installation

pip install "sparkless>=4,<5"

Contributors: follow the uv environment, native build, and test workflow.

Rust engine (optional)

Most users should use the Python package above. To embed the engine in Rust:

[dependencies]
robin-sparkless = "4"

Optional features: sql, delta, jdbc, sqlite, jdbc_mysql. See docs/QUICKSTART.md.


Development

Prerequisites: Rust (see rust-toolchain.toml), Python 3.8+, uv. The contributor setup installs Maturin. Java only for SPARKLESS_TEST_MODE=pyspark.

See CONTRIBUTING.md for setup, make check-full, pytest, and maturin workflow.

Command Description
make check-full Full CI-equivalent check (Rust + Python)
pytest tests/ -v Python tests (sparkless backend)
SPARKLESS_TEST_MODE=pyspark pytest tests/ -v Same tests against real PySpark
make check Rust: format, clippy, audit, tests

Documentation

Resource Description
Python package Install, quick start, platform matrix, API overview
Read the Docs Getting started, testing, migration, FAQ
Before you adopt UDF limits, parity caveats, production notes
CONTRIBUTING Dev setup and PR checklist
docs.rs Rust API reference
Testing Guide Dual-mode testing with sparkless.testing
PySpark Differences Known divergences
RELEASING Publishing to crates.io and PyPI

See CHANGELOG.md for version history.


License

MIT

Metadata

Release files for sparkless 4.15.1

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

Source distribution (sdist)

Source distribution for sparkless 4.15.1
File Size Uploaded Provenance
sparkless-4.15.1.tar.gz 720.3 kB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for sparkless 4.15.1
File
sparkless-4.15.1-cp38-abi3-win_arm64.whl CPython 3.8 abi3 Windows ARM64 Details
sparkless-4.15.1-cp38-abi3-win_amd64.whl CPython 3.8 abi3 Windows x86-64 Details
sparkless-4.15.1-cp38-abi3-musllinux_1_2_x86_64.whl CPython 3.8 abi3 Linux musl 1.2+ x86-64 Details
sparkless-4.15.1-cp38-abi3-musllinux_1_2_aarch64.whl CPython 3.8 abi3 Linux musl 1.2+ ARM64 Details
sparkless-4.15.1-cp38-abi3-manylinux_2_28_aarch64.whl CPython 3.8 abi3 Linux glibc 2.28+ ARM64 Details
sparkless-4.15.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 abi3 Linux glibc 2.17+ x86-64 Details
sparkless-4.15.1-cp38-abi3-macosx_11_0_arm64.whl CPython 3.8 abi3 macOS 11.0+ ARM64 Details
sparkless-4.15.1-cp38-abi3-macosx_10_12_x86_64.whl CPython 3.8 abi3 macOS 10.12+ x86-64 Details

Total release size: 322.7 MB

Release files / sparkless-4.15.1.tar.gz

Download URL sparkless-4.15.1.tar.gz
Size 720.3 kB
Tags Source
SHA-256 checksum
How to use checksums
56b0e215bdc37eb0f8723abb361c015d6c6a6113cb8e239116feb8389d947010
BLAKE2b-256 checksum
How to use checksums
7aa13f8429ac3221f7b08bc31590187a05b56ca12c568e54f5073cb8e0e17f9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / sparkless-4.15.1-cp38-abi3-win_arm64.whl

Download URL sparkless-4.15.1-cp38-abi3-win_arm64.whl
Size 40.0 MB
Tags CPython 3.8 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
4345583cc7d16b7fa7a1a2a22cabe4a1eaf692b8330f98366f18316d998ee078
BLAKE2b-256 checksum
How to use checksums
a69de2a2ea79587de2c95af07f7100bd58ecb336743238f2de94dc2dd5cce837
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / sparkless-4.15.1-cp38-abi3-win_amd64.whl

Download URL sparkless-4.15.1-cp38-abi3-win_amd64.whl
Size 43.7 MB
Tags CPython 3.8 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
3c3e283d511281cb1cfce0ea68a390ef00517debfb89d691c2906f6f881ac467
BLAKE2b-256 checksum
How to use checksums
32000f2dd5f314017153f3652296ec889242ba756ca75413c353ab98e8d6275e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / sparkless-4.15.1-cp38-abi3-musllinux_1_2_x86_64.whl

Download URL sparkless-4.15.1-cp38-abi3-musllinux_1_2_x86_64.whl
Size 41.6 MB
Tags CPython 3.8 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
1ed473d0318ff152260fb354603cc58c8c779633cc4024bdacbc6508e67fd215
BLAKE2b-256 checksum
How to use checksums
a551134e63b5d24f170ff0a2d33c7d538bb69a593a302023d0f081b20945e91d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / sparkless-4.15.1-cp38-abi3-musllinux_1_2_aarch64.whl

Download URL sparkless-4.15.1-cp38-abi3-musllinux_1_2_aarch64.whl
Size 38.8 MB
Tags CPython 3.8 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
7f28ba601ec92ce9d9e2175b129d3c5a54eda547f402cc180005c39422a1b304
BLAKE2b-256 checksum
How to use checksums
6e1cb7df6c6992b1f2f689900e8bd7228e3321cc37cf6c0cb4de6a32bb473d81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / sparkless-4.15.1-cp38-abi3-manylinux_2_28_aarch64.whl

Download URL sparkless-4.15.1-cp38-abi3-manylinux_2_28_aarch64.whl
Size 38.9 MB
Tags CPython 3.8 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
2d28fb1d7146a4d6b0543555f842a8353bd2ef4b63e447bf92711258fc79833f
BLAKE2b-256 checksum
How to use checksums
87d2974c28c13f22d61755e9c4a2de39f3c3ce55ccc0d09160afe366addbf2e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / sparkless-4.15.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL sparkless-4.15.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 41.6 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
8f0e69243536102581f8993d1c91b5ac7099081a27a82a4890d672a81601fa97
BLAKE2b-256 checksum
How to use checksums
636559adcd0a5342d47c8e92330b514146415d318f6de3c87641724f4ebd5f87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / sparkless-4.15.1-cp38-abi3-macosx_11_0_arm64.whl

Download URL sparkless-4.15.1-cp38-abi3-macosx_11_0_arm64.whl
Size 37.3 MB
Tags CPython 3.8 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8cd2b24d10b064870276f8c11b2b285d20f1f1c09c741c62d6b4814bbab71f9a
BLAKE2b-256 checksum
How to use checksums
c6beba5f9476fb9d1f7cf216eb8220caf267d0902c397d74e2fea4e74de8773e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Release files / sparkless-4.15.1-cp38-abi3-macosx_10_12_x86_64.whl

Download URL sparkless-4.15.1-cp38-abi3-macosx_10_12_x86_64.whl
Size 40.0 MB
Tags CPython 3.8 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
4953de23c91c4d03fa245ba50cf0e89280d68e1d91255372ce0c6a1361030a77
BLAKE2b-256 checksum
How to use checksums
7f6d6261623951dfcb1cb77a37522055fc99569c770d704ba8f40455fd764791
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.15.0

Security for sparkless 4.15.1

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.

Release history Release notifications | RSS feed

This release

4.15.1 This release

9 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