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.

Source Distribution

macvendor-1.0.12.linux-x86_64.tar.gz (408.0 kB view hashes)

Uploaded Source

Built Distribution

macvendor-1.0.12-py2.py3-none-any.whl (409.5 kB view hashes)

Uploaded Python 2 Python 3

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