mirror of
https://gitlab.com/manzerbredes/clusterman.git
synced 2025-04-07 04:26:25 +02:00
Minor changes
This commit is contained in:
parent
aa367050c8
commit
cfc1be0333
1 changed files with 21 additions and 3 deletions
|
@ -1,7 +1,25 @@
|
||||||
|
import platform
|
||||||
|
from typing import NamedTuple
|
||||||
|
|
||||||
|
class SystemInformations(NamedTuple):
|
||||||
|
"""System Informations Data Structure"""
|
||||||
|
hostname: str
|
||||||
|
arch: str
|
||||||
|
os: str
|
||||||
|
release: str
|
||||||
|
|
||||||
|
def sysinfos_create():
|
||||||
|
global SYSINFOS
|
||||||
|
uname = platform.uname()
|
||||||
|
SYSINFOS=SystemInformations(
|
||||||
|
uname.node,
|
||||||
|
uname.machine,
|
||||||
|
uname.system,
|
||||||
|
uname.release
|
||||||
|
)
|
||||||
|
print(SYSINFOS)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
print("it works!")
|
print("It works!")
|
||||||
|
sysinfos_create()
|
||||||
|
|
Loading…
Add table
Reference in a new issue