Python App for formatting MUN Resolutions made with python-docx. May be integrated into website or conference website as backend.
Currently the project is around 60~70% finished, but it can:
- pop up GUI window
- extract resolution structure to a
Resolutionobject - automatically correct errors
- show where the format of the resolution document is incorrect.
pip install -r requirements.txt
cd src
python main.py ../tests/inputs/test_problematic.docx -o ../tests/outputs/test_problematic.docx -l ../tests/outputs/formatter.logusage: [-h] [-v] [-o [OUTPUT]] [-l [LOG]] [filename]
Formats a resolution (.docx) and outputs file.
positional arguments:
filename input filename (optional)
options:
-h, --help show this help message and exit
-v, --verbose enable verbose mode
-o, --output [OUTPUT]
output filename
-l, --log [LOG] log file nameSample resolutions are available in tests/
Contributions (issues, PRs) are welcome. You can also add preambulatory/operational phrases by changing ./src/config/preambs/config.json or ./src/config/operationals/config.json. You can contribute to app logic development in ./src, or develop/refine workflow. Raise an issue or submit a PR.
- Refine Error handling and showing
- Enable adding to config (for phrases and adverbs)
- Upgrade GUI:
- Preview (tree view of clauses)
- Verbose mode
- Drag and drop
- Integrate to website if appropriate
- (Far future) allow amendment logic and apply amendments (though probably nobody cares)