ShardLoom Python
Use SQL or lazy DataFrames in Python with the ShardLoom engine. Read, transform,
query, and write data through familiar interfaces and supported formats. Start
with sl.context(...) and explicit memory and parallelism settings.
Install
Published 1.0.0. Install and platform requirements.
python -m pip install shardloom==1.0.0
-
macOS 26 or newer, Apple silicon; CPython 3.10 or newer; native or subprocess.
-
Linux x86_64, glibc 2.39 or newer; CPython 3.10 or newer; native or subprocess.
-
Windows x86_64; CPython 3.13; subprocess.
The example selects native execution. Use transport="subprocess" for the Windows CLI-backed package.
First query
from pathlib import Path
from tempfile import TemporaryDirectory
import shardloom as sl
workspace = TemporaryDirectory(prefix="shardloom-orders-")
orders = Path(workspace.name) / "orders.csv"
orders.write_text("order_id,status\n1,paid\n2,pending\n3,paid\n", encoding="utf-8")
# Illustrative caller choices: 256 MiB and two execution lanes.
ctx = sl.context(transport="native", memory_bytes=256 << 20, max_parallelism=2)
paid = ctx.read_csv(orders).filter(sl.col("status") == "paid").sort("order_id")
result = paid.collect(check=True)
print(result.to_rows())
ctx.close()
workspace.cleanup()
Expected values:
({'order_id': 1, 'status': 'paid'}, {'order_id': 3, 'status': 'paid'})
Reading, filtering, and sorting describe the work; collect() executes it.
Example resources are caller choices, not defaults. See the
first workflow for SQL,
writing results, and reopening a data file.
More tasks
- Python and DataFrames
- Reading and writing data
- Memory and parallelism
- Reference
- Limitations
- Development
Current source workflows
The 1.1.0 source checkout adds named SQL parameters, query-local DataFrame bindings, richer temporal/analytical operations, shared direct local readers, adaptive work sizing and admitted Iceberg/Delta/Hudi snapshot reads. Use a matching source build for these additions; the published 1.0.0 wheel is unchanged.
The connected programming guide shows SQL/DataFrame composition. The local table guide shows explicit formats and snapshot selectors. A small five-interface example checks complete results, explicit preparation and two independently reopened outputs.
Typed Python embedding
The optional shardloom.native API embeds the same engine with typed plans and
engine-owned columnar results. Arrow export is an explicit conversion. See the
embedding guide and
source-build instructions.
Application batch functions in development source
Post-1.0.0 source builds support explicitly trusted, deterministic, row-preserving
Python callables through ctx.batch_functions.register(...) and
frame.map_batches(function). Rust callbacks use the same native operator.
Declare ordered input/output schemas, null behavior, version and resource limits;
the callable runs only during an action. See the
example and ownership contract.
This in-process API is separate from plugin loading and stock CLI execution.
Contributor tooling
Metadata
Release files for shardloom 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| shardloom-1.1.0.tar.gz | 1.1 MB | With provenance | Details for shardloom-1.1.0.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| shardloom-1.1.0-cp313-cp313-win_amd64.whl | CPython 3.13 | CPython 3.13 | Windows x86-64 | Details for shardloom-1.1.0-cp313-cp313-win_amd64.whl |
| shardloom-1.1.0-cp310-abi3-manylinux_2_39_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.39+ x86-64 | Details for shardloom-1.1.0-cp310-abi3-manylinux_2_39_x86_64.whl |
| shardloom-1.1.0-cp310-abi3-macosx_26_0_arm64.whl | CPython 3.10 | abi3 | macOS 26.0+ ARM64 | Details for shardloom-1.1.0-cp310-abi3-macosx_26_0_arm64.whl |
Total release size: 145.6 MB
Security for shardloom 1.1.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 4 files in this release have been uploaded with provenance metadata.
Attestation for shardloom-1.1.0.tar.gz
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 3, 2026.
Transparency logA 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.