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
- Vendor:
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
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for mac_vendors-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc61043982991abcb0a9eb63fc1f00554d72217b01084168ff77b472953f31a7 |
|
MD5 | f863cde40cb96a9e82267aa50ee41937 |
|
BLAKE2b-256 | 57ff45a7a1efcd9653e2c7627c629c6bf2e6de0e3481ae1b3a573a8cf3394f7e |