Skip to main content

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


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.2.1.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

mac_formatter-0.2.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file mac-formatter-0.2.1.tar.gz.

File metadata

  • Download URL: mac-formatter-0.2.1.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

Hashes for mac-formatter-0.2.1.tar.gz
Algorithm Hash digest
SHA256 ba12b63866eb0b721a007bbb16ff97f4eb05e39586978ca090eb4ec0f30985fd
MD5 b90f14be018df410200876f5f8bd2740
BLAKE2b-256 202e72a6eae214585d9c44acf4f2ef993bd34f28fa4bd1f7cc9211824bc53a62

See more details on using hashes here.

File details

Details for the file mac_formatter-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mac_formatter-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2644f172f8468f9ead6f2a2bdd1a177bff3b2ccc0e32c5d864655fc291643ea5
MD5 1bbc8ddba68c2c0b14a83da5bac3d4a8
BLAKE2b-256 13a535f9f620c94e16462f74cb3416dd5a0b6dcef82b1b74511ae96009e705ac

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page