Python and windows bandwidth statistics?

D

Dave Reid

I've been searching for a something in Python for me to be able to get
the total outbound or inbound bandwidth (in Windows (or cross-OS
compatible). Can anyone help me out? Thanks!
 
D

Dennis Lee Bieber

I've been searching for a something in Python for me to be able to get
the total outbound or inbound bandwidth (in Windows (or cross-OS
compatible). Can anyone help me out? Thanks!

Presuming you mean "bandwidth usage" (bandwidth, itself, is fixed)
[for example, in theory a 100base-T connection has a 100Mbps
bandwidth... you may only be using 6% of that if you have a heavy load
on a high-end DSL connection]

Given that assumption, my normal response to a query like this is:

How would you get this value without using Python? Is there some way
to access that solution from within Python?

IOW, you are probably looking at some deep internals of the network
stack, and that is most likely not portable. Ignore Python -- and first
find out how that information is made available by the OS; then ask how
Python can access that information -- once you've determined where/how
the OS gives it.
--
Wulfraed Dennis Lee Bieber KD6MOG
(e-mail address removed) (e-mail address removed)
HTTP://wlfraed.home.netcom.com/
(Bestiaria Support Staff: (e-mail address removed))
HTTP://www.bestiaria.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,297
Messages
2,571,529
Members
48,240
Latest member
เพิ่มไลค์|LikePro

Latest Threads

Top