This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

a python module to parse a Microsoft Word form in docx format, and extract all field values with their tags into a dictionary.

Project Description

pywordform: a python module to parse a Microsoft Word form in docx format, and extract all field values with their tags into a dictionary.

Project website: http://www.decalage.info/python/pywordform

INSTALLATION:

  • on Windows, launch install.bat
  • on other systems, launch: 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,” 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 http://www.decalage.info/python/pywordform See main program at the end of the module, and also docstrings.

LICENSE:

See LICENSE.txt.

Release History

Release History

This version
History Node

0.02

History Node

0.01

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pywordform-0.02.zip (23.3 kB) Copy SHA256 Checksum SHA256 Source Apr 19, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting