简体   繁体   中英

How to get process network usage in Windows in python?

I'm using Python 2.7 and Windows 7 (but I need it to work on at least XP as well).

How can I get the percentage of the network bandwidth used by my program written in Python? So if the internet speed is 20 Mbit/s, and my program is connecting to the web at a "full speed", it'd write 100%, etc.

Thanks in advance!

You would need to develop a windows network driver with such capability.

Check the related answer at: Monitor a process's network usage?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM