Skip to main content

Convert JSON/YAML files to Microsoft Word (.docx) format using Markdown and Pandoc

Project description

conv2docx

A simple CLI tool to convert JSON/YAML files into Microsoft Word (.docx) documents.

Overview

This script wraps JSON content in markdown delimiters (\json) and uses Pandoc via the pypandoc module to convert it to a .docx document — useful when you need to turn structured data into printable or editable documents. YAML is also supported. It convert to JSON and then processed as JSON/

Features

  • Converts .json/yaml files to .docx
  • Supports single file mode and batch processing
  • Automatically creates and cleans up temporary files
  • Can be used as a command-line utility

Usage

To convert a single file:

conv2docx input.json

To convert all .json files in the current directory:

conv2docx

parameter --keep-temp keeps temporary files

Installation

pip install conv2docx

Requirements

Python >= 3.7

License

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

conv2docx-0.1.6.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

conv2docx-0.1.6-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file conv2docx-0.1.6.tar.gz.

File metadata

  • Download URL: conv2docx-0.1.6.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for conv2docx-0.1.6.tar.gz
Algorithm Hash digest
SHA256 6f7215b58675f665635e1d5e6f05fc60f68311d47c09ca20c7231c21209d8db1
MD5 32dd193fd00a2b0ed90eb521f51f5ac6
BLAKE2b-256 3334164207b181dc8740bae53e9b7641725e003fd133e4f2fbd17860082531c8

See more details on using hashes here.

File details

Details for the file conv2docx-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: conv2docx-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for conv2docx-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3f57810476a5bcedcf003fee789f4a828224232d2d7117130d0ae9e26363ae63
MD5 c6b6466e645a932b8cf9320b581479fd
BLAKE2b-256 19db195648a1ff64ead08bfa6bac1878f7ee6599d247efe3a77d844bd0ebb8c0

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