Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: get all mac addresses #77

Open
jaraco opened this issue Dec 5, 2022 · 2 comments
Open

Feature: get all mac addresses #77

jaraco opened this issue Dec 5, 2022 · 2 comments
Labels
feature New feature (or addition of new functionality to existing feature)

Comments

@jaraco
Copy link

jaraco commented Dec 5, 2022

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.

@GhostofGoes GhostofGoes added the feature New feature (or addition of new functionality to existing feature) label Dec 13, 2022
@GhostofGoes
Copy link
Owner

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.

@emadmahdi
Copy link
Contributor

+1 for this feature request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature (or addition of new functionality to existing feature)
Projects
None yet
Development

No branches or pull requests

3 participants