Skip to content

mycr0ft/pywordform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pywordform:
a python module to parse a Microsoft Word form in docx format, and
extract all field values with their tags into a dictionary.
This version has been updated from the 2012 revision posted at 
http://www.decalage.info/python/pywordform

PROJECT WEBSITE: https://github.com/mycr0ft/pywordform

INSTALLATION:

-setup.py install

HOW TO USE THIS MODULE:

Open sample_form.docx in MS Word, and edit field values.

From the shell, extract all fields with tags:

> python pywordform.py sample_form.docx
field1 = "hello, world."
field2 = "hello,
world."
field3 = "value B"
field4 = "04-03-2012"

In a python script:

import pywordform
fields = pywordform.parse_form('sample_form.docx')
print fields

=> this returns a dictionary of field values indexed by tags.

See main program at the end of the module, and also docstrings.

LICENSE:

See LICENSE.txt.

About

parse docx files to find fields defined in forms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages