A simple tool for formatting MAC addresses
Project description
mac_format
A simple library to convert MAC-addresses to different formats.
How
from mac_formatter import MacFormatter
mac_address = '01:ab:02:cd:03:ef'
mac = MacFormatter(mac_address)
print(mac.dot)
print(mac.line)
print(mac.space)
print(mac.colon)
print(mac.blank)
output:
01ab.02cd.03ef
01-ab-02-cd-03-ef
01 ab 02 cd 03 ef
01:ab:02:cd:03:ef
01ab02cd03ef
MAC-addresses is converted to lowercase by default, for uppercase use .upper()
---
thamuppet
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
mac-formatter-0.3.2.tar.gz
(2.3 kB
view details)
Built Distribution
File details
Details for the file mac-formatter-0.3.2.tar.gz
.
File metadata
- Download URL: mac-formatter-0.3.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dca53c31b2c0049a267f4b0cc426c9cc97b708067f553c3867204d5a0e658295 |
|
MD5 | 6a0b8c67e80ecd303ac013e501c890dd |
|
BLAKE2b-256 | 80d03c320e8d5a1d5e9954bbe6de2fd3705ac3d532202b7517ffe27fbf2d1cdd |
File details
Details for the file mac_formatter-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: mac_formatter-0.3.2-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84e6a74dca5688e3c46d677981352513fc5466a31692c8ebc3319d5586356970 |
|
MD5 | 77ac1ed1dbfe16876212b05436d32db1 |
|
BLAKE2b-256 | 26786e9dc1f4c1b58af4b685ccfe3a7b0210d6e57b11ca2f882787e99308ab2d |