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)
output:
01ab.02cd.03ef
01-ab-02-cd-03-ef
01 ab 02 cd 03 ef
01:ab:02:cd:03:ef
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.0.tar.gz
(2.0 kB
view details)
Built Distribution
File details
Details for the file mac-formatter-0.3.0.tar.gz
.
File metadata
- Download URL: mac-formatter-0.3.0.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bb7fd606546601dced9db1609a0da4130b7f023029d87def9fb0b29cc14d05f |
|
MD5 | 09aacf56ec433319e73f4962c1ab9f0c |
|
BLAKE2b-256 | 5e4fda6eddb21033b4fcbf40ec7c5c6c551835ee19f5d46acfa948122d7ec000 |
File details
Details for the file mac_formatter-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: mac_formatter-0.3.0-py3-none-any.whl
- Upload date:
- Size: 2.5 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 | 1dc2287ca9cc8402c1547e8563f9c349dcdbf23042c03cb0d866c5667297b10e |
|
MD5 | 8d66457854aa9905fb1d89e024cda3f1 |
|
BLAKE2b-256 | 499f62bafd22bdb415b9efd95d7bcf204cbd6e4767e0616b2d1d4936aea9d09a |