You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I was thinking of adding support to jaraco.net for supporting macOS devices (IP addresses and mac addresses), I thought getmac might be a helpful solution, but as I delved into it, I could see that getmac only returns a single mac, even though there may be multiple on a host. It would be nice if getmac could abstract some of its behaviors, mainly to allow a user to query for all mac addresses represented by the host.
The text was updated successfully, but these errors were encountered:
This is a good idea. Perhaps a new API to request more detailed information, or return a tuple if there is more than one address and a string otherwise.
I'm currently focused on getting 0.9.0 out the door (hopefully by end of next month) but I'll take a look at implementing this for 1.0.0.
Also, netifaces should do what you want (if I recall correctly, it's been a hot minute since I used it for link addresses). The downside is the maintainer had to drop last year due to personal commitments, so the latest Python version with Windows wheels available is 3.8. There is a fork, netifaces-plus, with Windows wheels up to and including 3.11.
As I was thinking of adding support to jaraco.net for supporting macOS devices (IP addresses and mac addresses), I thought getmac might be a helpful solution, but as I delved into it, I could see that getmac only returns a single mac, even though there may be multiple on a host. It would be nice if getmac could abstract some of its behaviors, mainly to allow a user to query for all mac addresses represented by the host.
The text was updated successfully, but these errors were encountered: