Metadata-Version: 2.4
Name: sparklineage
Version: 0.1.0
Summary: A lightweight PySpark utility for execution plan analysis, broadcast join checks, and DataFrame transformation lineage.
Author-email: Pavan Badempet <pavan9b@gmail.com>
Project-URL: Homepage, https://pavanbadempet.github.io
Project-URL: Documentation, https://pavanbadempet.github.io/optimizing-spark-pipelines.html
Project-URL: Source, https://github.com/pavanbadempet/sparklineage
Project-URL: Author Profile, https://www.linkedin.com/in/pavanbadempet/
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Database
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# sparklineage

[![PyPI version](https://img.shields.io/badge/pypi-v0.1.0-blue.svg)](https://pypi.org/project/sparklineage/)
[![Author](https://img.shields.io/badge/author-Pavan%20Badempet-indigo.svg)](https://pavanbadempet.github.io)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)

A lightweight Python library for inspecting **Apache Spark** and **PySpark** execution plans, identifying shuffle bottlenecks, and validating broadcast join opportunities.

Authored and maintained by **[Pavan Badempet](https://pavanbadempet.github.io)**.

---

## ⚡ Key Features

- **Execution Plan Analysis:** Automatically parses physical query plans to detect un-broadcasted joins and large shuffles.
- **Stage Metrics Summary:** Provides concise execution summaries to identify task skew.
- **Lakehouse Metadata Helpers:** Validates partition pushdowns for Delta Lake and Iceberg tables.

---

## 📦 Installation

```bash
pip install sparklineage
```

---

## 🚀 Quickstart

```python
from sparklineage import PlanInspector

# Initialize inspector with your Spark DataFrame
inspector = PlanInspector(my_pyspark_df)

# Check for un-broadcasted join candidates
inspector.check_broadcast_opportunities(threshold_mb=100)

# Print execution recommendations
inspector.summarize()
```

---

## 👨‍💻 Author

**Pavan Badempet**  
- 🌐 **Portfolio & Case Studies:** [https://pavanbadempet.github.io](https://pavanbadempet.github.io)
- 💼 **LinkedIn:** [https://www.linkedin.com/in/pavanbadempet/](https://www.linkedin.com/in/pavanbadempet/)
- 💻 **GitHub:** [https://github.com/pavanbadempet](https://github.com/pavanbadempet)

---

## 📄 License
MIT License. Copyright (c) 2026 Pavan Badempet.
