How to get the system info with Python?

Hello, internet people today we code How to get the system info with Python? As you know python is awesome blah blah… let’s code.

We use platform module to do that. Python defines an in-built module platform that provides system information.

The platform module is used to retrieve as much possible information about the platform on which the program is being currently executed.

Now by platform info, it means information about the device, its OS, node, OS version, Python version, etc.

This module plays a crucial role when you want to check whether your program is compatible with the python version installed on a particular system or whether the hardware specifications meet the requirements of your program.

check platform module here


import platform

print(f"Node: {platform.node()}")
print(f"Plateform: {platform.platform()}")
print(f"System: {platform.system()}")
print(f"Processor: {platform.processor()}")
print(f"Architecture: {platform.architecture()}")
print(f"Version: {platform.version()}")
print(f"Release: {platform.release()}")

#follow @code_snail


image 8

Try this code and follow me on Instagram @code_snail

Also, see,

Support CodeSnail

If you appreciate my work, or if it has helped you along your journey. It would mean a lot to me if you could write a message on my wall and share a cup of coffee (or tea) with me.

Buy Me A Coffee
Your subscription could not be saved. Please try again.
Your subscription has been successful.


Subscribe to our newsletter and stay updated.

Leave a Comment