chmutils.system_info

Classes

SystemInfo()

class chmutils.system_info.SystemInfo

Bases: object

cpu_info: str
hard_drive_info: str
os_name: str
to_json(file_path: Optional[str] = None) str

Convert the system information to a JSON string. If a file path is provided, save the JSON string to the file.

Args:

file_path (str): The path to save the JSON string. Defaults to None.

Returns:

str: The JSON string representation of the system information.