0.9.0 #79
Unanswered
GhostofGoes
asked this question in
Q&A
0.9.0
#79
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Announcement: Compatibility with Python versions older than 3.6 (2.7, 3.4, and 3.5) is deprecated and will be removed in getmac 1.0.0. If you are stuck on an unsupported Python, consider loosely pinning the version of this package in your dependency list, e.g.
getmac<1.0.0
orgetmac~=0.9.0
.This release is a complete rewrite of getmac from the ground up.
Refer to docs/rewrite.md for a in-depth explanation of the rewrite changes.
The new system has a number of benefits
Added
route get default
)sunos
(Which applies to any system whereplatform.system() == SunOS
).arping
(POSIX) orSendARP
(Windows) will now always be used instead of sending a UDP packet when looking for the MAC of a IPv4 host, if they're available and operable (otherwise, UDP + ARP table check will be used like before).DEBUG>=1
or-d
)--override-port
(this was already possible in Python viagetmac.getmac.PORT
, but wasn't configurable via the CLI. Now it is!).--override-platform
argument (CLI) orgetmac.getmac.OVERRIDE_PLATFORM
variable (Python). This will force methods for that platform to be used, regardless of the actual platform. Here's an example forcinglinux
to be used as the platform:getmac -i eth0 --override-platform linux
. In version 1.0.0, this feature will added as an argument toget_mac_address()
.--force-method
argument (CLI) orgetmac.getmac.FORCE_METHOD
variable (Python). This is useful for troubleshotting issues, general debugging, and testing changes. Example:getmac -v -dddd --ip 192.168.0.1 --force-method ctypeshost
Changed
getmac
from the ground up. Refer todocs/rewrite.md
for a in-depth explanation of the rewrite changesNone
, as expected, instead of raising an exception (socket.gaierror
).netstat
on older Linux distros (such as Ubuntu 12.04)ifconfig
parsing. It should now be far more reliable and accurate across all platforms.root
)./proc/net/route
parsing (this affected Android and potentially other platforms)route get default
)Removed
getmac.1
/getmac2.1
). They were severely out of date and unused. May re-add at a later date.Dev
flake8-pytest-style
andflake8-annotations
packaging/rpm/
. This stuff hasn't been updated since 0.6.0, may remove in the future and leave distro packaging to distro maintainers.This discussion was created from the release 0.9.0.
Beta Was this translation helpful? Give feedback.
All reactions