Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Utility to generate random MAC addresses

Project description

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

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for macgen, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size macgen-0.1.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page