Skip to main content

IceGuard

IceGuard

PyPI PyPI downloads (month) PyPI downloads (week) Python License

Published on PyPI: pypi.org/project/iceguard · Download stats: pepy.tech/project/iceguard (aggregated; PyPI does not expose per-version counts in the API)

Reliability library for Spark-on-AWS-Lambda (SoAL) lakehouse writes. Chunked writes with timeout rollback, S3 checkpoints, orphan cleanup, and optional CloudWatch or OpenTelemetry metrics.

Capability Out of the box You provide
Timeout rollback between chunks Yes —
Checkpoint resume (S3) Yes S3 bucket
S3 path cleanup on rollback Yes (track_paths) —
Iceberg / Delta / Hudi adapters Yes (S3 fallback) Catalog / commit client for metadata
Orphan scan CLI Yes IAM on table path
Blocking df.write.save() in protect() only No Use write_dataframe

Install

pip install iceguard

# With optional extras
pip install "iceguard[spark,iceberg,hudi,otel]==1.0.0"

# From source (specific tag)
pip install "git+https://github.com/vaquarkhan/IceGuard.git@v1.0.0"

Extras: [spark], [iceberg], [hudi], [otel], [dev]

Quick start

import iceguard

with iceguard.protect(context, s3_bucket="my-checkpoints") as writer:
    writer.write(
        path="s3://lake/db/table",
        total_records=10_000,
        batch_writer=lambda s, e: write_chunk(s, e),
        track_paths=lambda s, e: new_paths(s, e),
    )

Spark: iceguard.write_dataframe(writer, df, path, write_format="iceberg")

CLI: iceguard orphans scan s3://lake/db/table --json

Repository layout

Path Purpose
docs/ Full documentation
examples/ Python, SAM, CDK samples
terraform/ Modular production IaC
infra/cloudwatch/ Dashboard JSON
src/iceguard/ Library source

Development

pip install -e ".[dev]"
pytest tests --cov=iceguard
python validation/run_all.py

Release status

See docs/STATUS.md for capability checklist. v1.0.0 is published via GitHub Actions trusted publishing (OIDC) on release tags.

Documentation

License

MIT — see LICENSE.

Metadata

Release files for iceguard 1.0.0

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

Source distribution (sdist)

Source distribution for iceguard 1.0.0
File Size Uploaded Provenance Actions
iceguard-1.0.0.tar.gz 27.6 kB With provenance Details for iceguard-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for iceguard 1.0.0
File Interpreter ABI Platform Actions
iceguard-1.0.0-py3-none-any.whl Python 3 none any Details for iceguard-1.0.0-py3-none-any.whl

Total release size: 65.6 kB

Release files / iceguard-1.0.0.tar.gz

Download URL iceguard-1.0.0.tar.gz
Size 27.6 kB
Tags Source
SHA-256 checksum
How to use checksums
108d7c298c4125091942a893057ca3fa755714c9a9226cd70375bb02ef21da0d
BLAKE2b-256 checksum
How to use checksums
8f2e9bd5cf66510fb27d92a82d8a2e13f4bd6c8e2f9504af9c2cabce74f9b96f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 20, 2026.

Transparency log

Release files / iceguard-1.0.0-py3-none-any.whl

Download URL iceguard-1.0.0-py3-none-any.whl
Size 38.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
87cf7b27d12d1441dac319e94b9a0957f5ec4fb8575d6b0d9d2b822e94eb7572
BLAKE2b-256 checksum
How to use checksums
e05246b477b2eaec44f0f56b528a4fb0533f5be670e819ddb58d76072819180a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 20, 2026.

Transparency log

Security for iceguard 1.0.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 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for iceguard-1.0.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 May 20, 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

1.0.0 This release

2 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