Skip to main content

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 hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page