This Python script is designed to gather essential system information and convert it into a JSON format. It utilizes various modules to retrieve details about the operating system, network configuration, and hardware specifications.
Sys2JSON uses the following modules:
platform
socket
re
uuid
json
psutil
logging
fade
colorama
rich
- Open a terminal or command prompt
- Navigate to the directory containing the script
- Run the script using the command:
python sys2json.py
Sys2JSON gathers the following system information:
- Platform: Operating system name
- Platform Release: Release version of the operating system
- Platform Version: Version information of the operating system
- Architecture: Machine architecture (e.g., 'x86_64')
- Hostname: Hostname of the machine
- IP Address: IP address of the machine
- MAC Address: MAC address of the machine
- Processor: Processor information
- RAM: Total RAM in gigabytes (GB)
Sys2JSON outputs the system information in table and JSON format, making it easy to integrate into other applications or store for future reference.
Note: If any exceptions occur during the process of gathering system information, they will be logged using the logging
module.
Feel free to modify the script to suit your specific requirements or integrate it into other projects.