Nov-12-2019, 02:04 PM
Hi all,
I wrote a software in Python 3 with a CLI interface. It reads a text file given by the user, takes from it many information, processes them, and produces an excel file with the same information but written in a "human language".
Unfortunately my script is a little bit slowly. For example, to process a text file with 76000 lines it takes around 3 minutes.
To complete the software I wanted to add a progress bar but how can I do it? My source cose has composed by around 1000 lines, with many cicles and custom functions. Can you give me a simple examples please? I need a step by step procedure.
Keep in mind taht I'm still a beginner with the Python. It has been my first and only programming language that I learnt.
I wrote a software in Python 3 with a CLI interface. It reads a text file given by the user, takes from it many information, processes them, and produces an excel file with the same information but written in a "human language".
Unfortunately my script is a little bit slowly. For example, to process a text file with 76000 lines it takes around 3 minutes.
To complete the software I wanted to add a progress bar but how can I do it? My source cose has composed by around 1000 lines, with many cicles and custom functions. Can you give me a simple examples please? I need a step by step procedure.
Keep in mind taht I'm still a beginner with the Python. It has been my first and only programming language that I learnt.