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

Source Distribution

macgen-0.1.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file macgen-0.1.tar.gz.

File metadata

  • Download URL: macgen-0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for macgen-0.1.tar.gz
Algorithm Hash digest
SHA256 837b927d0fe9d9842cc69447624dc3f6596f96bbe5f1f85930050335f32be13e
MD5 245817bd6222db1de880de5b9a100f3e
BLAKE2b-256 2b365ff1f584e5ad04fdcbd0bafb7fa51fd961e50adea562f6a0fc8fb018c421

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page