Python Forum

Full Version: Progress Indicator for Xmodem 0.4.6
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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?