Skip to content

Commit

Permalink
Added system module and python_version, architecture and os_name
Browse files Browse the repository at this point in the history
  • Loading branch information
onuratakan committed Apr 8, 2024
1 parent 4def82c commit 80e0ee8
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tiger/tools/system/architecture.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import platform


def architecture():
return platform.architecture()[0]


tool_name = "system.architecture"
tool_obj = architecture
tool_requirements = []
17 changes: 17 additions & 0 deletions tiger/tools/system/os_name.py
Original file line number Diff line number Diff line change
@@ -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 = []
10 changes: 10 additions & 0 deletions tiger/tools/system/python_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import platform


def python_version():
return platform.python_version()


tool_name = "system.python_version"
tool_obj = python_version
tool_requirements = []

0 comments on commit 80e0ee8

Please sign in to comment.