Skip to main content

Retrieves network adapter configuration information using Windows Management Instrumentation (WMI) and return it as a Pandas DataFrame.

Project description

Retrieves network adapter configuration information using Windows Management Instrumentation (WMI) and return it as a Pandas DataFrame.

Tested against Windows 10 / Python 3.10 / Anaconda

pip install netzcfg

Retrieve network adapter configuration information using Windows Management Instrumentation (WMI) and return it as a Pandas DataFrame.

Parameters:
- ipenabled (bool, optional): If True, filter network adapters by those with IP enabled (default is False).

Returns:
- pd.DataFrame: A DataFrame containing network adapter configuration information, with columns:
  - Configuration parameter names (e.g., 'SettingID', 'IPAddress', 'SubnetMask', etc.).
  - Values associated with each configuration parameter.

Example:
>>> nic_info = get_nic_info(ipenabled=True)
>>> print(nic_info.head())
   SettingID IPAddress      SubnetMask      DefaultIPGateway
0    {GUID}   192.168.1.2  255.255.255.0  192.168.1.1
1    {GUID}   10.0.0.2    255.255.255.0  10.0.0.1
...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netzcfg-0.10.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

netzcfg-0.10-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page