System¶
How To: Basic::System
Get python version
Display your details in three lines
Determine 32bit or 64bit OS
Get os name, platform and release information
Locate python site-packages
Call an external command in python
Find out the number of cpus using
Determine profiling of python programs
Print to stderr
Get environment variables
Get the current username
Find local ip addresses using python’s stdlib
Get height and width of the console window
Get the copyright information
Get the command-line arguments
If system is a big- or little endian platform
Find the available built-in modules
Get the size of an object in bytes
Print the current call stack
Get the system time
Clear the screen or terminal
Get the host name
Access and print a url’s content to the console
Get system command output
Get the groupId, userId, groupId of the current process
Get the users environment
Get largest and smallest int, long, float
Get the actual module object for a given object
Validate an IP address
Find the operating system name, platform
Determine 32bit or 64bit mode of python shell
Find the location of python module sources