Metadata-Version: 2.1
Name: mac-vendors
Version: 0.0.5
Summary: Get vendor information from a MAC address.
Home-page: https://github.com/brERS/dio.me-bootcamps/tree/main/Gera%C3%A7%C3%A3o%20Tech%20Unimed-BH%20-%20Ci%C3%AAncia%20de%20Dados/Descomplicando%20a%20cria%C3%A7%C3%A3o%20de%20pacotes%20em%20Python
Author: Edgar Reis
License: UNKNOWN
Platform: UNKNOWN
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# 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](https://pip.pypa.io/en/stable/) to install package_name

```bash
pip install mac-vendors
```

## Usage 

#### Get information from a single mac
```python
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
```python
from mac.vendor import Vendors

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

#### Get the information through a tuple
```python
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
```python
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
```python
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
```python
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](https://choosealicense.com/licenses/mit/)

