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!
pip3 install git+https://github.com/StephenODea54/dropdown-parser.gitdropdown_parser --helpdropdown_parser my_file.docx
# Outputs to my_file.csvor
dropdown_parser my_file.docx -o csv
# Outputs to my_file.csvdropdown_parser my_file.docx -o json
# Outputs to my_file.jsondropdown_parser my_file.docx -o txt
# Outputs to my_file.txtdropdown_parser /path/to/word/doc -o xlsx
# Outputs to my_file.xlsxThe following needs to be installed on your local environment:
- poetry
- pytest
- pre-commit
- black
TODO: Add Docker for local dev environment
- Clone the repository:
git clone https://github.com/StephenODea54/dropdown-parser.git- Install dependencies:
poetry install- Enable pre-commit hooks:
pre-commit installStephen O'Dea - odeastephen1@gmail.com
Distributed under the MIT license. See LICENSE for more information.
- Fork repo (https://github.com/StephenODea54/dropdown-parser/fork)
- Create a feature branch (
git checkout -b feature/my-cool-feature) - Commit changes (
git commit -m "Added my-cool-feature") - Push to branch (
git push origin feature/my-cool-feature) - Create a new pull request