Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Client library for macaddress.io <https://macaddress.io>
_ in Python
language.
::
pip install maclookup
or
::
git clone https://github.com/CodeLineFi/maclookup-python.git
pip install -e /path_to_sdist/
or
::
cd /path_to_sdist/
python setup.py install
or
::
cd /path_to_sdist/
easy_install .
::
from maclookup import ApiClient
import logging
client = ApiClient('Your API key')
logging.basicConfig(filename='myapp.log', level=logging.WARNING)
print(client.get_raw_data('00A043AAAAAA', 'json'))
print(client.get_vendor('BBA043AAAAAA'))
print(client.get('BBA043AAAAAA'))
response = client.get('00A043AAAAAA')
print(response.vendor_details.is_private)
print(response.block_details.date_created)
You may find some examples in the "examples" directory. To run these
examples you need to install "maclookup" package. Then you need to create an
account on macaddress.io <https://macaddress.io>
_. The last step is to
define environment variables with the value of your API key and other
settings.
::
export API_KEY=<Your API key>
export LOG_FILENAME=myapp.log
export OUTPUT_FILENAME=result.csv
maclookup package contains the API client class ApiClient, which implements the following functionality
ApiClient methods list:
get(mac): ResponseModel Returns ResponseModel object as a parsed API response for a given MAC address or OUI
get_vendor(mac): string Returns the company name as text
get_raw_data(mac, output_format): string Returns non-parsed API response as string
set_base_url(url) Sets base url to url
set_requester(requester) Sets instance of Requester
ResponseModel fields:
VendorDetails fields:
BlockDetails fields:
MacAddressDetails fields:
If the server returns a marker of outdated API version, this library will write a warning to the log.
To install dev requirements, you need to run the following commands:
::
cd /path_to_sdist/
pip install -e .[dev]
To run unit tests, you may use the following command:
::
cd /path_to_sdist/
python -m unittest discover . "*_test.py"
or this one
::
cd /path_to_sdist/
tox
FAQs
Python client library for macaddress.io API.
We found that maclookup demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.