Skip to main content

DO NOT USE, THIS IS A WORK IN PROGRESS -- A library that allows the editing of form XML components in .docx files.

Project description

docx-form

Description

This package allows you to easily modify the values of content controls on forms in Microsoft Word with python scripts. This project currently supports reading and editting of the combo box, check box, plain text, datepicker, and dropdown content controls through the package's functions. The file being modified can be overwritten with the new values or saved to a new file.

Setup For Use

Requirements:

  • Pip
  • Python version 3.10.6 or higher

Simply run "pip install docx-form" to install docx-form and its required dependencies. After pip is installed, all that is left to do is import the project with "from docx_form import DocxForm". Link to Pip project

Setup For Contribution

Requirements:

  • Pip
  • Python version 3.10.6 or higher
  • Poetry 1.2.0

Clone the repository, for those who aren't familiar https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository.

Poetry Installation

First install Python using powershell. Link to install: https://python-poetry.org/docs/ Once installed, grab poetry application from the poetry script folder and manually add it to your Python scripts folder. Then in the project environment set the interpreter path to the pypoetry virtual environment. Run Poetry install to install all poetry's dependecies. For visual studio code, cmd + p is the command to select intepreter.

Then fetch development and pull in changes and make a new branch off development to start contributing.

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

docx_form-0.1.6.tar.gz (10.2 kB view hashes)

Uploaded Source

Built Distribution

docx_form-0.1.6-py3-none-any.whl (18.4 kB view hashes)

Uploaded Python 3

Supported by

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