Metadata-Version: 2.4
Name: json2docx
Version: 0.1.1
Summary: A simple tool to replace placeholders and base64 images in Word .docx templates
Home-page: https://github.com/mioo-dev/json2docx
Author: Mioo Dev
Author-email: shrbmamad@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: python-docx

# 📝 json2docx

**json2docx** is a Python library that fills Word `.docx` templates using a dictionary of values.  
It replaces **text placeholders** and **base64-encoded images** (matched via alt text) recursively in paragraphs and tables.

---

## ✅ Features

- 🔤 Replace text placeholders like `{{key}}`
- 🖼 Replace images using base64 data matched by image **Alt Text**
- 🔁 Works recursively inside tables, rows, and cells
- 📄 Supports both `.docx` paragraphs and tables
- 🪄 Easy to integrate in automation and document generation workflows

---

## 📦 Installation

```bash
pip install json2docx
```
