Skip to main content

magcen - MAC Address Generation Utility and Library

macgen is a simple python library to facilitate the generation of MAC addresses.

Install

pip install macgen

Usage

# generate a MAC with default options (locally administered, unicast)
macgen

# generate a MAC with a dash as the separator
macgen -s -

# generate a MAC with no separator
macgen -S

# generate a local / multicast MAC
macgen -m

# generate a random global (supposedly OUI enforced) / unicast MAC
macgen -g

# generate a global / multicast MAC
macgen -mg

Planned Features

  • Generate a repeatable MAC from a seed string
  • Supply an OUI prefix

Development Setup

virtualenv -p python3 venv
. venv/bin/activate
pip install -r requirements.txt

Metadata

Release files for macgen 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for macgen 0.1
File Size Uploaded
macgen-0.1.tar.gz 3.3 kB Details

Release files / macgen-0.1.tar.gz

Download URL macgen-0.1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
837b927d0fe9d9842cc69447624dc3f6596f96bbe5f1f85930050335f32be13e
BLAKE2b-256 checksum
How to use checksums
2b365ff1f584e5ad04fdcbd0bafb7fa51fd961e50adea562f6a0fc8fb018c421
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.10

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page