Metadata-Version: 2.1
Name: pymdocx
Version: 0.3.8
Summary: pydocx is a Python library for updating Microsoft Word files.
Home-page: https://github.com/mirrornight/pydocx
Author: mirrornight
Author-email: mirrornighth@gmail.com
License: MIT License
Platform: all
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
License-File: LICENSE.txt

What is pydocx?
===============

pydocx is a Python library for updating Microsoft Word files.

Installation
------------

`pip install pymdocx`

Usage
-----

::
    
    import os

    from pymdocx.common.utils import get_doc
    from pymdocx.doc.paragraph import merge_paragraph_comment_revision
    from pymdocx.doc.table import merge_table_comment_revision

    DIR_PATH = './../data/test_table'

    # merge_docx
    doc_o_path = os.path.join(DIR_PATH, 'table.docx')
    doc_a_path = os.path.join(DIR_PATH, 'table_a.docx')
    doc_b_path = os.path.join(DIR_PATH, 'table_b.docx')
    doc_o = get_doc(doc_o_path)
    doc_a = get_doc(doc_a_path)
    doc_b = get_doc(doc_b_path)
    merge_paragraph_comment_revision(doc_o, [doc_a, doc_b])
    merge_table_comment_revision(doc_o, [doc_a, doc_b])
    doc_o.save('table_new.docx')


