Skip to main content

Krishiv

Spark alternative in Rust: PySpark and Spark SQL without the JVM.

Krishiv runs Spark SQL and a PySpark-style DataFrame API inside your Python process. No cluster, no JVM, no server to start. Execution is vectorized on Apache Arrow, and results come back as Arrow tables you can hand to pandas, Polars or DuckDB without copying.

Install

pip install krishiv

Needs Python 3.11 or newer. pyarrow is installed with it. For toPandas() add the extra: pip install "krishiv[pandas]".

30-second example

import krishiv
from krishiv.sql import functions as F

spark = krishiv.session()  # a PySpark-style SparkSession, in process

spark.sql("SELECT 1 AS answer").show()

df = spark.sql("SELECT * FROM VALUES ('east', 10.0), ('west', 20.0), ('east', 5.5) AS t(region, amount)")
df.groupBy("region").agg(F.sum("amount").alias("revenue")).orderBy("region").show()

table = df.toArrow()  # a pyarrow.Table; also pa.table(df), polars.DataFrame(df), duckdb.from_arrow(df)

What works in 0.2

  • Batch Spark SQL and DataFrames, in process, over Arrow. krishiv.sql mirrors pyspark.sql (import paths and signatures); errors in krishiv.errors carry Spark's error classes.
  • Reading and writing Parquet files; EXPLAIN and EXPLAIN ANALYZE with per-operator rows, time and memory.
  • Spark's function library, with Spark's results (hashing, casts, null handling and error behaviour follow Spark).
  • krishiv.testing: assertDataFrameEqual and a pytest fixture, to run your PySpark tests without a JVM.

Streaming, incremental views, Spark Connect and distributed execution are still being built. This is an alpha: there is no stable API yet.

Speed

Benchmark results against Spark 4.2.0 on TPC-H-derived queries (not official TPC results) are published with their method, queries and raw numbers at https://krishiv.ai/benchmarks.

Supported CPUs

The default wheels need an x86-64-v3 CPU (Intel Haswell, 2013, or AMD Zen and newer) or, on arm64, Armv8.2 (AWS Graviton2, Apple silicon). On an older x86-64 CPU install krishiv-compat instead: the same package and the same import krishiv, built for the plain x86-64 baseline (Linux only). Install one of the two, not both.

Krishiv is licensed under Apache-2.0. Apache Spark is a trademark of the Apache Software Foundation; Krishiv is not affiliated with it.

Metadata

Release files for krishiv 0.3.0

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

Built distributions (wheels)

Table of built distributions (wheels) for krishiv 0.3.0
File Actions
krishiv-0.3.0-cp314-cp314t-musllinux_1_2_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64 Details for krishiv-0.3.0-cp314-cp314t-musllinux_1_2_x86_64.whl
krishiv-0.3.0-cp314-cp314t-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64 Details for krishiv-0.3.0-cp314-cp314t-manylinux_2_28_x86_64.whl
krishiv-0.3.0-cp314-cp314t-manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ ARM64 Details for krishiv-0.3.0-cp314-cp314t-manylinux_2_28_aarch64.whl
krishiv-0.3.0-cp314-cp314t-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 Details for krishiv-0.3.0-cp314-cp314t-macosx_11_0_arm64.whl
krishiv-0.3.0-cp311-abi3-musllinux_1_2_x86_64.whl CPython 3.11 abi3 Linux musl 1.2+ x86-64 Details for krishiv-0.3.0-cp311-abi3-musllinux_1_2_x86_64.whl
krishiv-0.3.0-cp311-abi3-manylinux_2_28_x86_64.whl CPython 3.11 abi3 Linux glibc 2.28+ x86-64 Details for krishiv-0.3.0-cp311-abi3-manylinux_2_28_x86_64.whl
krishiv-0.3.0-cp311-abi3-manylinux_2_28_aarch64.whl CPython 3.11 abi3 Linux glibc 2.28+ ARM64 Details for krishiv-0.3.0-cp311-abi3-manylinux_2_28_aarch64.whl
krishiv-0.3.0-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for krishiv-0.3.0-cp311-abi3-macosx_11_0_arm64.whl

Total release size: 288.7 MB

Release files / krishiv-0.3.0-cp314-cp314t-musllinux_1_2_x86_64.whl

Download URL krishiv-0.3.0-cp314-cp314t-musllinux_1_2_x86_64.whl
Size 39.0 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
ccec58a2b6921f3e0e753029306720197d7412fc48174c1f6b407ac84aca8aac
BLAKE2b-256 checksum
How to use checksums
c4ec5b18a09b628eb79073fcb5601377bfad7ddb92f75bed32ce8490442431f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / krishiv-0.3.0-cp314-cp314t-manylinux_2_28_x86_64.whl

Download URL krishiv-0.3.0-cp314-cp314t-manylinux_2_28_x86_64.whl
Size 38.8 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
e4085fa19e10423963d3dde466eb2f1113552f79c05e256bed34937ab7c84904
BLAKE2b-256 checksum
How to use checksums
0cce94b6b47071a0efb309073cfcaf17d21f449558e2b5b8715f3d24b9561ba1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / krishiv-0.3.0-cp314-cp314t-manylinux_2_28_aarch64.whl

Download URL krishiv-0.3.0-cp314-cp314t-manylinux_2_28_aarch64.whl
Size 33.4 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
d1f965db9fde9f60764f765177f40d067f13f03b101d70ca266d1b4215575280
BLAKE2b-256 checksum
How to use checksums
ceb095224a21aecbe74c390b55a1334d3aed99928fcbc738b7522f5239a38e32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / krishiv-0.3.0-cp314-cp314t-macosx_11_0_arm64.whl

Download URL krishiv-0.3.0-cp314-cp314t-macosx_11_0_arm64.whl
Size 33.2 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e320aa06861c9fe296bf656329b2cfaafdc2af8223ecba1a71023bee2fc658c1
BLAKE2b-256 checksum
How to use checksums
5066c0f1efb73e94e3142548e6adc501ec0dc56e7a015b888754d61fec99cc8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / krishiv-0.3.0-cp311-abi3-musllinux_1_2_x86_64.whl

Download URL krishiv-0.3.0-cp311-abi3-musllinux_1_2_x86_64.whl
Size 39.0 MB
Tags CPython 3.11 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
3b14ac5d6738cc3a1ae8a3a49dc2b52e75f58483f2416cd77aa203a50244d6d8
BLAKE2b-256 checksum
How to use checksums
7665bd14cd1a11453a485b99a2f10d0cadf8dcd2c5567f86b6ce93fd6191e89d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / krishiv-0.3.0-cp311-abi3-manylinux_2_28_x86_64.whl

Download URL krishiv-0.3.0-cp311-abi3-manylinux_2_28_x86_64.whl
Size 38.8 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
1e9981a15e56a36681c95db391b984b0d522af3c63844e10a92e2d4f6e0c0ad1
BLAKE2b-256 checksum
How to use checksums
f9963c88ab73e3020dd1fb3df108691f98100aebe094838a28701550e32f499b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / krishiv-0.3.0-cp311-abi3-manylinux_2_28_aarch64.whl

Download URL krishiv-0.3.0-cp311-abi3-manylinux_2_28_aarch64.whl
Size 33.4 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
fa1a61be18452fab3c71cfa852b48dfb95d1d8c9967b710575db3103057c12be
BLAKE2b-256 checksum
How to use checksums
ab6d26b24f76bcb9750259016317062c02e3a7d3a4e742c85df17eae166fb0c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / krishiv-0.3.0-cp311-abi3-macosx_11_0_arm64.whl

Download URL krishiv-0.3.0-cp311-abi3-macosx_11_0_arm64.whl
Size 33.2 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
aa67709a40939626da30c388e84e7265726a0f66645ae50ac97a16ac18b3078f
BLAKE2b-256 checksum
How to use checksums
dfad05de7fb22360f0aa589d15ba0e01f0ba5ec5f3eeb2acdeee26bc88cd27b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Security for krishiv 0.3.0

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.

Full provenance

All 8 files in this release have been uploaded with provenance metadata.

Select from 8 files

Attestation for krishiv-0.3.0-cp314-cp314t-musllinux_1_2_x86_64.whl

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 Nov 25, 2026.

Transparency log

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.0 This release

8 release files Full 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