All Projects → hustcc → mac.py

hustcc / mac.py

Licence: other
⚡A python lib to search Manufacturer of physical network card by mac address. 一个通过物理地址查询网卡所属厂商的Python库。

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Mac.py

A python lib to search Manufacturer of mac address. With only one method search.

一个用于利用物理地址查询网卡所属厂商的Python库,只有一个Api方法。

Build Status PyPi Status Python Versions PyPi Downloads

Install

pip install mac.py

Usage

from macpy import Mac

mac = Mac()
mac.search('00016C')
mac.search('00:01:6C:06:A6:29')
mac.search('00-01-6C-06-A6-29')
mac.search('00') # None
mac.search('') # None

Output

search result will be

{
	're': 'Brea  CA  92821', 
	'com': 'FOXCONN', 
	'addr': '105 S Puente St.', 
	'co': 'US'
}

or None

What's the meaning of result dict key:

  • com: company name
  • re: company region
  • addr: company address
  • co: company country

Online Search

Welcome to issue or pr.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].