One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| # This version of the printProgressBar function implements an optional autoresize argument. | |
| # It has been updated from a previous version to use the shutil Python module to determine | |
| # the terminal size. This update should allow it to work on most operating systems and does | |
| # speed up the autosize feature quite a bit – though it still slows things down quite a bit. | |
| # For more robust features, it's recommended you use a progress bar library like tdqm (see: https://github.com/tqdm/tqdm) | |
| def printProgressBar (iteration, total, prefix = '', suffix = '', decimals = 1, length = 100, fill = '█', autosize = False): | |
| """ | |
| Call in a loop to create terminal progress bar | |
| @params: |
| #!/usr/bin/env python | |
| # created by shuichinet https://gist.github.com/shuichinet | |
| # forked from https://gist.github.com/shuichinet/8159878 21 Nov 2015 | |
| # using minor edits by fcrimins https://www.reddit.com/user/fcrimins from https://www.reddit.com/r/google/comments/2xzgyv/remove_duplicate_songs_from_google_play_music/csh6mrh | |
| # also using clever edits by Morgan Gothard https://medium.com/@mgothard | |
| # updated for Python 3.5 by John M. Kuchta https://medium.com/@sebvance 22 Nov 2016 (hey I was busy) | |
| # compiled by John M. Kuchta https://medium.com/@sebvance | |
| # thanks to shuichinet, fcrimins and Mr. Gothard for their work |