Skip to main content

A simple tool for formatting MAC addresses

Project description

mac_format

A simple library for reformatting MAC-addresses.


How

from mac_formatter import MACFormation

mac_address = '01:ab:02:cd:03:ef'
mac = MACFormation(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

---

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

Uploaded Source

Built Distribution

mac_formatter-0.1.4-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mac-formatter-0.1.4.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.1.4.tar.gz
Algorithm Hash digest
SHA256 1c03215e2591a76ac0d1d377efddcec6369e9847901cdfad977f1ba049721e05
MD5 ea19f39822043c62d6d941b65b59e6b4
BLAKE2b-256 ef0ffffef84026f8eb6e3a95b953aff3a04f1529ba7f421b1199560fa079d054

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mac_formatter-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1653aca1e6de9554fcbf45a3364993c16525211894bbc236c51fff98e676949a
MD5 485f83f8c52e7487f6e02124ea125334
BLAKE2b-256 70d5ee4522ae7efd2b4380fc4878ce90369ad84c8a2c53894c321bc18bdb6716

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