Python Forum
Progress Indicator for Xmodem 0.4.6 - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Progress Indicator for Xmodem 0.4.6 (/thread-32254.html)



Progress Indicator for Xmodem 0.4.6 - KenHorse - Jan-30-2021

I'm using the xmodem module (https://pypi.org/project/xmodem/) and it works just fine. However, I'd like to incorporate some sort of progress indicator during the upload.

I kinda know my way around python but I'm no expert. Can someone point me in the right direction?


RE: Progress Indicator for Xmodem 0.4.6 - bowlofred - Jan-30-2021

When I look at that package, it shows how to send/receive streams, not files. I don't see anything that reports the expected size. For a progress indicator, you'd usually want a percentage complete. Can you get the file size ahead of time?