Skip to main content

This project provides a set of base classes that simplify the art of crafting bullet-proof Spark Structured Streaming applications.

Project description

pyspark-streaming-base

This project provides a set of base classes that simplify the art of crafting bullet-proof Spark Structured Streaming applications.

The Environment

Java Home

Setup on Mac

brew install openjdk@17
brew install openjdk@21

Here is an example from my local install. I needed to manually symlink since java 23 was taking over the mac

ln -s /opt/homebrew/Cellar/openjdk@21/21.0.8/libexec/openjdk.jdk /Users/scotthaines/Library/Java/JavaVirtualMachines/openjdk@21.0.8

Check that your version exists

/usr/libexec/java_home -V

The following I added to my ~/.zshrc. Spark 4.0.1 supports Java 17 or 21, and Scala 2.13. Use jdk 21.

export JAVA_HOME=$(/usr/libexec/java_home -v 21)

Using uv : https://docs.astral.sh/uv/getting-started/features/#projects

uv python install 3.13

Sync to match the uv.lock

uv sync
uv build
uv run pytest --cov=pyspark_streaming_base --cov-report term

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

pyspark_streaming_base-0.1.0.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

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

pyspark_streaming_base-0.1.0-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

Details for the file pyspark_streaming_base-0.1.0.tar.gz.

File metadata

File hashes

Hashes for pyspark_streaming_base-0.1.0.tar.gz
Algorithm Hash digest
SHA256 eea283c3e8b28376558cbbb28ba2411d896272ec602d85a14383c150e381ebaf
MD5 2caadd16e409c52ffedfcaa227bd2000
BLAKE2b-256 cf9e189a9d281f84a1c0e4a8a7d11aabd3eae13fa338df5a51c5d3d58bf2c1e9

See more details on using hashes here.

File details

Details for the file pyspark_streaming_base-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyspark_streaming_base-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f13b648391b9ce800a6a42b52ed5fcf686bc03ba1bf6e14a129e9837fe472953
MD5 02d793982ed00c1f937f17bcbfcd445e
BLAKE2b-256 957aacb92b5b4f2cc78c808459c8cc8e0dd81dadcc33607ed17de0509fce2463

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