Tiny Python API for performing MAC address lookups using Coffer.
Project description
coffer_mac
Tiny Python API for performing MAC address lookups using Coffer.
Install
$ pip install coffer_mac --user
Usage
>>> from coffer_mac import CofferMAC
>>> client = CofferMAC()
>>> # Lookup by full MAC address
>>> client.lookup('08:00:69:02:01:FC')
[{'prefix': '080069', 'vendor': 'Silicon Graphics (SGI)'}, {'prefix': '080069', 'vendor': 'Silicon Graphics (SGI)'}]
>>> # Lookup by first three octets
>>> client.lookup('08:00:69')
[{'prefix': '080069', 'vendor': 'Silicon Graphics (SGI)'}, {'prefix': '080069', 'vendor': 'Silicon Graphics (SGI)'}]
>>> # Lookup by vendor
>>> client.lookup('trident')
[{'prefix': '001153', 'vendor': 'Trident Tek, Inc.'}, {'prefix': '00258F', 'vendor': 'Trident Microsystems, Inc.'}, {'prefix': '001153', 'vendor': 'Trident Tek, Inc.'}, {'prefix': '00258F', 'vendor': 'Trident Microsystems, Inc.'}]
>>> # Use a proxy
>>> client = CofferMAC(proxy='localhost:8080')
>>> client.lookup('foo')
[{'prefix': '001588', 'vendor': 'Balda-Thong Fook Solu'}, {'prefix': '001903', 'vendor': 'Bigfoot Networks Inc'}, {'prefix': '00609D', 'vendor': 'Pmi Food Equipment Group'}, {'prefix': '00D029', 'vendor': 'Wakefern Food Corporation'}, {'prefix': '001588', 'vendor': 'Balda-Thong Fook Solu'}, {'prefix': '001903', 'vendor': 'Bigfoot Networks Inc'}, {'prefix': '00609D', 'vendor': 'Pmi Food Equipment Group'}, {'prefix': '00D029', 'vendor': 'Wakefern Food Corporation'}, {'prefix': 'C458C2', 'vendor': 'Shenzhen TATFOOK Technology Co., Ltd.'}]
Disclaimer
I am not affiliated with "Coffer Group, LLC" and I cannot vouch for the validity of the data obtained.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
coffer_mac-0.1.1.tar.gz
(3.1 kB
view details)
File details
Details for the file coffer_mac-0.1.1.tar.gz
.
File metadata
- Download URL: coffer_mac-0.1.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19d7b947bd2f66dddf92bdadd9159cee0828d1ea24aea18106a035d23ca8c49a |
|
MD5 | f526d83edd128668990a990a3b1f8079 |
|
BLAKE2b-256 | 7bf194bf6eaee62e7dc78f742665e8044d85c04d0ec04a5fa89104c711750bd4 |