Sometimes we use text files to writing a scope or listing some things to do and our file finishes pretty big. How I've received and writing that's files, made this class to help get total hours them.
- Open files txt and Docx
- The total sum of string following a pattern
Just install π python and then install python-docx:
pip install python-docxRun the following commands on python command line:
myClass = TotalHours('TOTAL: ', 3)
myClass.openTxt('files/scope.txt') or myClass.openDocx('files/scope.docx')
myClass.getTotal()