Get Your System Specifications Using Python

 

Thumbnail



Can you get your system specifications using python?

The answer is yes you can easily do that by using python in-built module that is Platform.

About Platform Module

This Module is used to get the information about the system in which you are currently working/running your program. It already exist in Python so you don't have to install it. We can fetch information like processor type, bit architecture, machine type, operating system and etc.

Read More About It: Platform Documentation

You have To import it using:

import platform

Source Code:

import platform


processor=platform.processor()  #Give Processor Information
architecture=platform.architecture() #Give Bit Architecture Information
machine=platform.machine() #Give Information About Machine Type
network=platform.node() #Give Information About Network Node
platform_name=platform.platform() #Give Information About Current Working Platform
os=platform.system() #Give Information About Current Operating System

print("Processor Type: ",processor)
print("Bit Architecture: ",architecture)
print("Machine Type: ",machine)
print("System Network Name: ",network)
print("Platform: ",platform_name)
print("Operating System: ",os) 

0 Comments