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 details)
Built Distribution
File details
Details for the file mac-vendors-0.0.5.tar.gz
.
File metadata
- Download URL: mac-vendors-0.0.5.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72d3fef2706ed65043070de65674add0fd3cdad94be88890e946cbdbc703d69b |
|
MD5 | 5b249c92fd7d3bfab77f903dcd47ff2b |
|
BLAKE2b-256 | 8c0a7b41971b715d0a72d66baa6a43c63385e48f917328917fcc14ca54f36128 |
File details
Details for the file mac_vendors-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: mac_vendors-0.0.5-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc61043982991abcb0a9eb63fc1f00554d72217b01084168ff77b472953f31a7 |
|
MD5 | f863cde40cb96a9e82267aa50ee41937 |
|
BLAKE2b-256 | 57ff45a7a1efcd9653e2c7627c629c6bf2e6de0e3481ae1b3a573a8cf3394f7e |