Skip to main content

Get vendor information from a MAC address.

Project description

mac_vendors

Library created in order to facilitate the obtaining of manufacturers through MAC ADDRESS.

Description.

  • The package mac_vendors is used to:

    • Vendor:
      • get_by_single
      • get_by_tuple
      • get_by_file
    • Api_vendors:
      • get_info

Installation

Use the package manager pip to install package_name

pip install mac-vendors

Usage

Get information from a single mac

from mac.vendor import Vendors

example = Vendors()
example.get_by_single('78:30:3b')
print(example.response)

Get the information through a file

  • The file must have one mac per line
from mac.vendor import Vendors

example = Vendors()
example.get_by_file('DIR/FILE')
print(example.response)

Get the information through a tuple

from mac.vendor import Vendors

macs = ('78:30:3b', '00:19:46')

example = Vendors()
example.get_by_tuple(*macs)
print(example.response)

Export

To excel

from mac.vendor import Vendors

example = Vendors()
example.get_by_single('78:30:3b')

example.to_excel(
    path='DIR',
    file_name='sheet_name'
)

To CSV

from mac.vendor import Vendors

example = Vendors()
example.get_by_single('78:30:3b')

example.to_csv(
    path='DIR',
    file_name='sheet_name'
)

To txt

from mac.vendor import Vendors

example = Vendors()
example.get_by_single('78:30:3b')

example.to_txt(
    path='DIR',
    file_name='sheet_name'
)

Author

Edgar Reis

License

MIT

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

mac-vendors-0.0.5.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

mac_vendors-0.0.5-py3-none-any.whl (4.4 kB view hashes)

Uploaded 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