mac addresses added to system

This commit is contained in:
Volkan Şahin 2016-05-16 17:27:51 +03:00
parent ec730ab5ce
commit 114a44c223

View file

@ -4,6 +4,7 @@
import platform import platform
import psutil import psutil
from uuid import getnode as get_mac
class System: class System:
@ -142,6 +143,10 @@ class System:
class Hardware(object): class Hardware(object):
@staticmethod
def mac_address():
return str(':'.join(("%012X" % get_mac())[i:i + 2] for i in range(0, 12, 2)))
class Memory(object): class Memory(object):
@staticmethod @staticmethod