No project description provided
Project description
mac-format
CLI tool to format any possible mac address input text to some pretermined mac formats.
By defaul, the tool will clean the MAC address delimiters and reformat the address in lower and upper case, using two chars by group notation (xx:xx:xx:xx:xx:xx).
Only the follow delimiters will be added to the final addresses:
- Nothing.
- Single space.
:
-
_
.
Installation
To install the tool, run the follow pip command:
$ python3 -m pip install mac-format
To check if the tool is availabe, run:
$ python3 -m pip freeze | grep mac-format
To simply run the tool, you can execute it calling the python module follow by the mac address:
$ python3 -m mac_format 77:62:76:5F:B0:85
| | M |: 7762765FB08
| | m |: 7762765fb08
| : | M |: 77:62:76:5F:B0:85
| : | m |: 77:62:76:5f:b0:85
| - | M |: 77-62-76-5F-B0-85
| - | m |: 77-62-76-5f-b0-85
| _ | M |: 77_62_76_5F_B0_85
| _ | m |: 77_62_76_5f_b0_85
| . | M |: 77.62.76.5F.B0.85
| . | m |: 77.62.76.5f.b0.85
| | M |: 77 62 76 5F B0 85
| | m |: 77 62 76 5f b0 85
------------------------------
The 7762765FB085's vendor is: Dell Inc.
If you just run the tool withou the MAC ($ python3 -m mac_format
) an input field will be opened:
$ py -m mac_format
Type the MAC address: 77.62.76-5f.b0.85
| | M |: 7762765FB08
| | m |: 7762765fb08
| : | M |: 77:62:76:5F:B0:85
...
The 7762765FB085's vendor is: Dell Inc.
To became easy to run, you can create an alias, the follow command:
sudo echo 'alias macf="python3 -m mac_format"' >> ~/.zshrc
- I'm using zsh in my shell, please change to your favorite shell rc file.
Then simply run macf
in your shell to run the tool.
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
Built Distribution
File details
Details for the file mac_format-0.2.1.tar.gz
.
File metadata
- Download URL: mac_format-0.2.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.7 Linux/5.14.9-100.fc33.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 943e85235f1268d06fb62fcaeadb74f73d80ca5858cf778e12abcd0666ad0871 |
|
MD5 | 4229d3e4efd9fac97206d1664a46b7b3 |
|
BLAKE2b-256 | 3b0874bc6c3d44f3d2c02891116bc9e14b65a47d51a8238b35b4d3afa8815588 |
File details
Details for the file mac_format-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: mac_format-0.2.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.7 Linux/5.14.9-100.fc33.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a66cf878fdf1e6e3463857d37aa45c0d5fd6094378db01397dd665f918adcc39 |
|
MD5 | 6ee0a51ea4f7bb11248b08e670a4f2c4 |
|
BLAKE2b-256 | e5a8bb0c13e8ba3e904642c673ae124684ca9e761027bfe574795f8cb2f900c5 |