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
cfc1be0333
commit
97b82ce849
2 changed files with 2 additions and 23 deletions
|
@ -1,25 +1,4 @@
|
||||||
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()
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[project]
|
[project]
|
||||||
name = "clusterman"
|
name = "clusterman"
|
||||||
dynamic = ["version"]
|
dynamic = ["version"]
|
||||||
dependencies = []
|
dependencies = ["psutil"]
|
||||||
description = "Simple cluster management utility"
|
description = "Simple cluster management utility"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue