Skip to main content

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

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 hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page