mac-attrs combines the functionality of macaddress and random-mac into a web app that evaluates the attributes of media access control (MAC) addresses.
mac-attrs is available on GitHub at https://github.com/critical-path/mac-attrs.
If you do not have pip version 18.1 or higher, then run the following command from your shell.
[user@host ~]$ sudo pip install --upgrade pipTo install mac-attrs with test-related dependencies, run the following command from your shell.
[user@host ~]$ sudo pip install --editable git+https://github.com/critical-path/mac-attrs.git#egg=mac-attrs[test]To install it without test-related dependencies, run the following command from your shell.
[user@host ~]$ sudo pip install git+https://github.com/critical-path/mac-attrs.git(If necessary, replace pip with pip3.)
Before starting mac-attrs for the first time, run the following commands from your shell.
[user@host mac-attrs]$ chmod +x ./get-started.sh
[user@host mac-attrs]$ ./get-started.shTo start mac-attrs, run the following command from your shell.
[user@host mac-attrs]$ gunicorn --bind=0.0.0.0:8080 --workers=2 "mac_attrs:make_app()"Using mac-attrs is easy!
First, point your browser to any of the following URLs.
http://localhost:8080/http://localhost:8080/homehttp://localhost:8080/home.htmlhttp://localhost:8080/indexhttp://localhost:8080/index.htmlhttp://localhost:8080/mac-attrshttp://localhost:8080/mac-attrs.html
Second, type a MAC address.
Third, click on the submit button.
Fourth, view the results.
To conduct testing, run the following command from your shell.
[user@host mac-attrs]$ pytest --disable-warnings --cov --cov-report=term-missingIf pytest raises an INTERNALERROR, then run the following command from your shell.
[user@host mac-attrs]$ sudo $(which pytest) --disable-warnings --cov --cov-report=term-missing