Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Streamcase

CI License

Streamcase is an early-development pytest-oriented toolkit for deterministic Apache Spark Structured Streaming tests.

Status: the Spark runner, including checkpoint-preserving restart actions, scenario model, results, and assertions are implemented. No release is published yet. The proposed first-alpha scope is narrower than the longer-term roadmap.

The 0.1.0a1 candidate notes describe the tested support matrix and limitations. Publication is tracked separately in #99.

Problem

Ordinary DataFrame assertions do not exercise streaming semantics such as micro-batch boundaries, late data, watermarks, checkpoint restarts, or state growth. Streamcase will make those behaviors explicit and reproducible in Python tests while executing against Spark's public Structured Streaming interfaces.

Installation

Until the first PyPI release, install the lightweight backend-independent package from this checkout with:

python -m pip install -e .

Install the approved PySpark line for the Spark runner from this checkout with:

python -m pip install -e ".[spark]"

The Spark extra keeps PySpark out of the core dependency set. See the Spark compatibility policy for the supported Python, Java, and Spark combination.

Available today

Streamcase can describe immutable logical input batches and checkpoint-preserving restart boundaries, represent captured output, and assert row equality, batch counts, and unique keys without importing PySpark. The public Spark runner executes batches and restarts against a caller-owned session. See the scenario model guide and results and assertions guide, plus the two-batch Spark quick start and runner contract and checkpoint restart example.

Planned capabilities

  • progress, watermark, and state-store assertions;
  • pytest fixtures;
  • compatibility testing across supported Spark releases.

These items are roadmap goals, not current package features. Each capability has its own issue, tests, documentation, and pull request.

Repository status

This bootstrap establishes:

  • Python packaging with a src layout;
  • Apache License 2.0 and project governance;
  • issue and pull-request conventions;
  • formatting, linting, type checking, tests, and package validation in CI;
  • security and release policies.

See ROADMAP.md for the planned delivery sequence and docs/architecture.md for the proposed technical shape.

Local checks

python -m venv .venv
python -m pip install -e ".[dev]"
ruff format --check .
ruff check .
mypy
pytest -m "not spark"
python -m build
python -m twine check dist/*

Spark contributors can run the isolated integration suite with the setup in the contribution guide.

Contributing

All material work starts with a GitHub issue and reaches main only through a reviewed pull request. Read CONTRIBUTING.md before making a change.

Trademark notice

Apache Spark, Spark, Apache Flink, and Flink are trademarks of the Apache Software Foundation. Streamcase is independent software and is not endorsed by the Apache Software Foundation.

License

Licensed under the Apache License 2.0.

Metadata

Release files for streamcase 0.1.0a1

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

Source distribution (sdist)

Source distribution for streamcase 0.1.0a1
File Size Uploaded
streamcase-0.1.0a1.tar.gz 45.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for streamcase 0.1.0a1
File Interpreter ABI Platform
streamcase-0.1.0a1-py3-none-any.whl Python 3 none any Details

Total release size: 71.1 kB

Release files / streamcase-0.1.0a1.tar.gz

Download URL streamcase-0.1.0a1.tar.gz
Size 45.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4d60595ddb32b52b89a2d091f33f9b0412f2bcd4c065f20b6aee3852ebc5c850
BLAKE2b-256 checksum
How to use checksums
80b159bf7016ebf34a64aaa060cafb02f1719ecf1587ea72f73b5bbc32150844
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / streamcase-0.1.0a1-py3-none-any.whl

Download URL streamcase-0.1.0a1-py3-none-any.whl
Size 25.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8784a729d269d89a2750f6961261b36823145c1727e9e570958cda5ac10a1d5c
BLAKE2b-256 checksum
How to use checksums
f74410e92e5fc9daaef195cadf4ccbd9af33370a02da400ccc8a1b3ecdc677e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0a1 This release

2 release files

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