Skip to main content

A simple tool to replace placeholders and base64 images in Word .docx templates

Project description

📝 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

pip install json2docx

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

json2docx-0.1.5.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

json2docx-0.1.5-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file json2docx-0.1.5.tar.gz.

File metadata

  • Download URL: json2docx-0.1.5.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for json2docx-0.1.5.tar.gz
Algorithm Hash digest
SHA256 653f8df54d35060ed629fba765595da273591f157297df7100b9afb0c64c5c65
MD5 13e0edaf8432c20890842418b6b348b3
BLAKE2b-256 d01305a3195e0828f84592cd5e8690b3b51dd1e0448909579fa795fd443e6666

See more details on using hashes here.

File details

Details for the file json2docx-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: json2docx-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for json2docx-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f632adfa97308cc3cd48cdca6958adf0e0bfc63ac7fe426e54d99e50d44d6056
MD5 6cb612c99679b537967821b6bba60b92
BLAKE2b-256 67c2e63a3a1fcc0d60f91016f7a3fda544dca3bd9bc3b3a3e5f638be0b348914

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page