Obtaining network configuration via Python

Micheal Kelly michealk at newlix.com
Mon Jul 24 15:32:36 EDT 2000


Hi all,

Quick question:  I'm writing some Python scripts in Linux that need access
to the system's network configuration - now, I could parse the output of
ifconfig quite easily (and have for that matter).  However, for various reasons
I can't and don't want to do this - I'd rather access the network configuration
info directly from the OS if possible.

My question is:  Does anyone know how to do this in Python under Linux?
Is there a module or library I can use?

Thanks,
- Mike Kelly





More information about the Python-list mailing list