Skip to main content

A Python Liberary and CLI Tool for Fiding Vendors of MAC Addresses

Project description

Features

  • Validate MAC Address / OUI (patterns are bellow)
  • Get the manufacture of af a single or multiple MAC address/OUI
  • Import it in your script/program or use it as CLI program

python-macvendor

Installation

pip install macvendor

Basic Usage

As CLI program

$ macvendor.py 30:8d:99:15:c8:9A 00:01:42

Mac Vendor
30:8d:99:15:c8:9A Hewlett Packard
00-01-52-55-33-34 Chromatek Inc.
00:01:42 Cisco Systems, Inc

As library

from macvendor import getVendor

print(getVendor("30:8d:99:15:c8:9A"))

['30:8d:99:15:c8:9A', 'Hewlett Packard']

from macvendor import getVendorList

print(getVendorList(["30:8d:99:15:c8:9A", "00:01:42", "00-01-52-55-33-34"]))

{'30:8d:99:15:c8:9A': 'Hewlett Packard', '00:01:42': 'Cisco Systems, Inc', '00-01-52-55-33-34': 'Chromatek Inc.'}

3d party Dependencies

Usage as library

No Dependencies

Usage in command line

Tabulate 0.8.6

MAC / OUI accepted formats

note: all patternes are case insensetive

XX:XX:XX:XX:XX:XX
XX-XX-XX-XX-XX-XX
XX.XX.XX.XX.XX.XX
XXXXXXXXXXXX
XX:XX:XX:FF:FE:XX:XX:XX
XX-XX-XX-FF-FE-XX-XX-XX
XX.XX.XX.FF.FE.XX.XX.XX
XXX:XXX:XXX:XXX
XXX-XXX-XXX-XXX
XXX.XXX.XXX.XXX
XXXX:XXFF:FEXX:XXXX
XXXX-XXFF-FEXX-XXXX
XXXX.XXFF.FEXX.XXXX
XXXXXXFFFEXXXXXX
XXX:XXX:XXX:XXX
XXX-XXX-XXX-XXX
XXX.XXX.XXX.XXX
XXXX:XXFF:FEXX:XXXX
XXXX-XXFF-FEXX-XXXX
XXXX.XXFF.FEXX.XXXX

Version History

1.0.12 : Refactoring command line arguments and options.
1.0.11 : Initial PyPI release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for macvendor, version 1.0.12
Filename, size File type Python version Upload date Hashes
Filename, size macvendor-1.0.12.linux-x86_64.tar.gz (408.0 kB) File type Source Python version None Upload date Hashes View hashes
Filename, size macvendor-1.0.12-py2.py3-none-any.whl (409.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page