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)
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


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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mac-formatter-0.3.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.3.1.tar.gz
Algorithm Hash digest
SHA256 1e650e2223dd6053374554496c6fc4a499fd2433196afffe2a2a7ac7dd108183
MD5 ef05054ba47523ab6895ed8b87827a37
BLAKE2b-256 5890aebb069ba6da108363a174ba7fdeb7baf7d66b5482405ee66c5b83764511

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mac_formatter-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dfc187c253d667becf6f7da878b4cb154db4b31785ccfecbc9315e95b17ca175
MD5 109c7ef8b6a9d1423a61e684b17c4487
BLAKE2b-256 8b2ec72b70a87c6c18ed4bc6892387fbbefbd6560f9fbc26dd1da27a38fa5389

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