Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dropdown Parser

Have you ever found yourself in the midst of trying to programmatically extract dropdown values from a Word Document for stakeholders?

If not, consider yourself a lucky person! If so, you've likely scoured StackOverflow and python-docx documentation to no avail.

Well, fear no more! Introducing dropdown_parser, a Python CLI package that is designed to extract and export dropdown values from Word Docs!


Installation

pip3 install git+https://github.com/StephenODea54/dropdown-parser.git

Usage Examples

Documentation

dropdown_parser --help

Output to CSV

dropdown_parser my_file.docx

# Outputs to my_file.csv

or

dropdown_parser my_file.docx -o csv

# Outputs to my_file.csv

Output to JSON

dropdown_parser my_file.docx -o json

# Outputs to my_file.json

Output to TXT

dropdown_parser my_file.docx -o txt

# Outputs to my_file.txt

Output to XLSX

dropdown_parser /path/to/word/doc -o xlsx


# Outputs to my_file.xlsx

Development Setup

Prerequisites

The following needs to be installed on your local environment:

  • poetry
  • pytest
  • pre-commit
  • black

TODO: Add Docker for local dev environment

Installation

  1. Clone the repository:
git clone https://github.com/StephenODea54/dropdown-parser.git
  1. Install dependencies:
poetry install
  1. Enable pre-commit hooks:
pre-commit install

Licensing

Stephen O'Dea - odeastephen1@gmail.com

Distributed under the MIT license. See LICENSE for more information.


Contributing

  1. Fork repo (https://github.com/StephenODea54/dropdown-parser/fork)
  2. Create a feature branch (git checkout -b feature/my-cool-feature)
  3. Commit changes (git commit -m "Added my-cool-feature")
  4. Push to branch (git push origin feature/my-cool-feature)
  5. Create a new pull request

About

A Python CLI program that parses and exports dropdown lists from Microsoft Word Documents.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages