diff --git a/tiger/tools/system/architecture.py b/tiger/tools/system/architecture.py new file mode 100644 index 0000000..98bc767 --- /dev/null +++ b/tiger/tools/system/architecture.py @@ -0,0 +1,10 @@ +import platform + + +def architecture(): + return platform.architecture()[0] + + +tool_name = "system.architecture" +tool_obj = architecture +tool_requirements = [] \ No newline at end of file diff --git a/tiger/tools/system/os_name.py b/tiger/tools/system/os_name.py new file mode 100644 index 0000000..10999cf --- /dev/null +++ b/tiger/tools/system/os_name.py @@ -0,0 +1,17 @@ +import platform + +def os_name(): + system_name = platform.system() + if system_name == 'Windows': + return 'Windows' + elif system_name == 'Darwin': + return 'macOS' + elif system_name == 'Linux': + return 'Linux' + else: + return 'Unknown OS' + + +tool_name = "system.os_name" +tool_obj = os_name +tool_requirements = [] \ No newline at end of file diff --git a/tiger/tools/system/python_version.py b/tiger/tools/system/python_version.py new file mode 100644 index 0000000..20bcf6d --- /dev/null +++ b/tiger/tools/system/python_version.py @@ -0,0 +1,10 @@ +import platform + + +def python_version(): + return platform.python_version() + + +tool_name = "system.python_version" +tool_obj = python_version +tool_requirements = [] \ No newline at end of file