[ 源代码: getmac ]
软件包:python3-getmac(0.9.5-1)
Get MAC addresses of remote hosts and local interfaces in Python
This pure-Python package retrieves the MAC address of network interfaces and hosts on the local network. It supports various platforms, providing a consistent interface to fetch MAC addresses by interface name, IPv4/IPv6 address, or hostname. The primary function is `get_mac_address()`.
Features:
- Platform-independent and pure-Python implementation. - Fetch MAC addresses of system network interfaces. - Retrieve MAC addresses of remote hosts on the local network.
Usage examples include fetching MAC addresses for different interfaces, IP addresses, and hostnames. The package also includes a command-line tool for quick usage.