Python 2.5 includes an uuid implementation which (in at least one version) needs the mac address. You can import the mac finding function into your own code easily:
from uuid import getnode as get_mac
mac = get_mac()
The return value is the mac address as 48 bit integer.
More Related Contents:
- Python pysftp get_r from Linux works fine on Linux but not on Windows
- fcntl substitute on Windows
- Using Python, how can I access a shared folder on windows network?
- Python: how to kill child process(es) when parent dies?
- Shebang Notation: Python Scripts on Windows and Linux?
- How to find the real user home directory using python?
- Packaging a Python script on Linux into a Windows executable
- Cross-platform subprocess with hidden window
- Python virtualenv questions
- Cross-platform space remaining on volume using python
- Can Python select what network adapter when opening a socket?
- How to open a file with the standard application?
- How to use “/” (directory separator) in both Linux and Windows in Python?
- Get local network interface addresses using only proc?
- Python multiprocessing linux windows difference
- How to close a socket left open by a killed program?
- How do I copy a string to the clipboard?
- Execute Python script via crontab
- How can I find where Python is installed on Windows?
- Access Denied page with headless Chrome on Linux while headed Chrome works on windows using Selenium through Python
- Multiple ping script in Python
- Running powershell script within python script, how to make python print the powershell output while it is running
- python’s webbrowser launches IE, instead of default browser, on Windows relative path
- Tensorflow r1.0 : could not a find a version that satisfies the requirement tensorflow
- How do I eliminate Windows consoles from spawned processes in Python (2.7)? [duplicate]
- How can I send a signal from a python program?
- How to get the text cursor position in Windows?
- List of IP addresses/hostnames from local network in Python
- Trouble installing SciPy on windows
- How to properly report an exit status in batch?