Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hustcc/mac.py
:zap:A python lib to search Manufacturer of physical network card by mac address. 一个通过物理地址查询网卡所属厂商的Python库。
https://github.com/hustcc/mac.py
Last synced: 7 days ago
JSON representation
:zap:A python lib to search Manufacturer of physical network card by mac address. 一个通过物理地址查询网卡所属厂商的Python库。
- Host: GitHub
- URL: https://github.com/hustcc/mac.py
- Owner: hustcc
- Created: 2016-04-28T05:17:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-21T13:06:29.000Z (almost 7 years ago)
- Last Synced: 2024-10-17T16:04:09.630Z (17 days ago)
- Language: Python
- Homepage: https://github.com/hustcc/mac.py
- Size: 3.8 MB
- Stars: 67
- Watchers: 11
- Forks: 15
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mac.py
A python lib to search Manufacturer of mac address. With only one method `search`.
一个用于利用物理地址查询网卡所属厂商的Python库,只有一个Api方法。
[![Build Status](https://travis-ci.org/hustcc/mac.py.svg?branch=master)](https://travis-ci.org/hustcc/mac.py) [![PyPi Status](https://img.shields.io/pypi/v/mac.py.svg)](https://pypi.python.org/pypi/mac.py) [![Python Versions](https://img.shields.io/pypi/pyversions/mac.py.svg)](https://pypi.python.org/pypi/mac.py) [![PyPi Downloads](https://img.shields.io/pypi/dm/mac.py.svg)](https://pypi.python.org/pypi/mac.py)
## Install
```sh
pip install mac.py
```## Usage
```py
from macpy import Macmac = 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
```py
{
'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
- [http://www.atool.org/mac.php](http://www.atool.org/mac.php)
Welcome to issue or pr.