diff options
| author | Loic Guegan <loic.guegan@mailbox.org> | 2023-10-25 13:22:46 +0200 |
|---|---|---|
| committer | Loic Guegan <loic.guegan@mailbox.org> | 2023-10-25 13:22:46 +0200 |
| commit | 97b82ce849ae3165906d5e9c1c019d2688339d0b (patch) | |
| tree | 7b889a9da85ff9f99ced26098cc8a32696673859 | |
| parent | cfc1be03335dea934857a43cc027b49cd523f95d (diff) | |
Minor changes
| -rw-r--r-- | clusterman/__main__.py | 23 | ||||
| -rw-r--r-- | pyproject.toml | 2 |
2 files changed, 2 insertions, 23 deletions
diff --git a/clusterman/__main__.py b/clusterman/__main__.py index 413293b..7700eec 100644 --- a/clusterman/__main__.py +++ b/clusterman/__main__.py @@ -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(): print("It works!") - sysinfos_create() + diff --git a/pyproject.toml b/pyproject.toml index e865194..d18be07 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "clusterman" dynamic = ["version"] -dependencies = [] +dependencies = ["psutil"] description = "Simple cluster management utility" readme = "README.md" |
