summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Guegan <loic.guegan@mailbox.org>2023-10-25 12:12:58 +0200
committerLoic Guegan <loic.guegan@mailbox.org>2023-10-25 12:12:58 +0200
commitcfc1be03335dea934857a43cc027b49cd523f95d (patch)
tree37ed5d793e539923b3c170e4d22a79d2e777e75b
parentaa367050c89943260363b30c36c5284da2f6e22b (diff)
Minor changes
-rw-r--r--clusterman/__main__.py24
1 files changed, 21 insertions, 3 deletions
diff --git a/clusterman/__main__.py b/clusterman/__main__.py
index f3b5ec8..413293b 100644
--- a/clusterman/__main__.py
+++ b/clusterman/__main__.py
@@ -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():
- print("it works!")
+ print("It works!")
+ sysinfos_create()