mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 09:42:15 +03:00
mac addresses added to system
This commit is contained in:
parent
ec730ab5ce
commit
114a44c223
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue