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.
Metadata
Release files for mac-format 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mac_format-0.2.1.tar.gz | 3.0 kB | Without provenance | Details for mac_format-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mac_format-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for mac_format-0.2.1-py3-none-any.whl |
Total release size: 6.2 kB
Release files / mac_format-0.2.1.tar.gz
| Download URL | mac_format-0.2.1.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
943e85235f1268d06fb62fcaeadb74f73d80ca5858cf778e12abcd0666ad0871
|
|
BLAKE2b-256 checksum How to use checksums |
3b0874bc6c3d44f3d2c02891116bc9e14b65a47d51a8238b35b4d3afa8815588
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.7 CPython/3.9.7 Linux/5.14.9-100.fc33.x86_64
|
Release files / mac_format-0.2.1-py3-none-any.whl
| Download URL | mac_format-0.2.1-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a66cf878fdf1e6e3463857d37aa45c0d5fd6094378db01397dd665f918adcc39
|
|
BLAKE2b-256 checksum How to use checksums |
e5a8bb0c13e8ba3e904642c673ae124684ca9e761027bfe574795f8cb2f900c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.7 CPython/3.9.7 Linux/5.14.9-100.fc33.x86_64
|
Security for mac-format 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.