
from mac_vendor_lookup import MacLookup, BaseMacLookup BaseMacLookup. Location of: os.path.expanduser('~/.cache/mac-vendors.txt') to your prefered location.

If a customĭirectory is required, then override the class variable cache_path of class BaseMacLookup(.) from it default The library stores and looks for the list of MAC prefixes in a group predefined defaults paths. lookup ( mac_address )) Vendor list custom location or path update_vendors () # <- This can take a few seconds for the download def find_mac ( mac_address ): print ( mac. If you need up-to-date information, you canĭownload a fresh copy of the list directly from IEEE with MacLookup.update_vendors or AsyncMacLookup.update_vendors: from mac_vendor_lookup import MacLookup mac = MacLookup () mac. The library contains a list of MAC prefixes obtained at build-time. VEB KOMBINAT ROBOTRON Update the vendor list

Installation pip install mac-vendor-lookupīasic Usage from mac_vendor_lookup import MacLookup print ( MacLookup (). It has an asynchronous interface using Python 3's asyncio as well as a regular synchronous interfaceįor old-school usage.

It may also be listed as "Hardware Address" or "Physical Address." It will look something like the following: 00 0B 4D 2F 62 7Aįor Macintosh (OS 10.5 and higher) Systems Write down the MAC Address for your adapter.
