Skip to main content

PySpark emulator — Polars for DataFrames, DuckDB for SQL, fake HDFS on local filesystem

Project description

singlespark

PySpark emulator — no JVM required.

  • Polars for DataFrame operations
  • DuckDB for Spark SQL
  • Local filesystem for fake HDFS

Quick start

from singlespark import SparkSession
from singlespark.sql import functions as F

spark = SparkSession.builder.appName("MyApp").getOrCreate()
df = spark.createDataFrame([("Alice", 30), ("Bob", 25)], ["name", "age"])
df.filter(F.col("age") > 26).show()
spark.stop()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

singlespark-0.1.1.tar.gz (31.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

singlespark-0.1.1-py3-none-any.whl (31.6 kB view details)

Uploaded Python 3

File details

Details for the file singlespark-0.1.1.tar.gz.

File metadata

  • Download URL: singlespark-0.1.1.tar.gz
  • Upload date:
  • Size: 31.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for singlespark-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7b8172f35510d0c33ebfbdc2fc45883e3e41182e64b6b538d395fc3cd66a14b6
MD5 7bcd71ebb476f761245991f831a2a6fb
BLAKE2b-256 ca5297e75c0ab9d4dec5ce53b57874a5e2597aa7bd660714a32c9abe8ca89214

See more details on using hashes here.

File details

Details for the file singlespark-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: singlespark-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 31.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for singlespark-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 45e57c1e23658bf2049ca3615f1ae337f85ea27664eb4b7cd76fc5d992bd15f1
MD5 063f903736d416df32df079281d355c4
BLAKE2b-256 16174b01b9e499048a8752302d848d6996d66ab0a5b82beacd20eb77a2fe7453

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page