Python standard modules

  1. Some Standard modules
  2. sys
  3. Writing to standard error (stderr)
  4. Current directory (getcwd, pwd, chdir)
  5. OS dir (mkdir, makedirs, remove, rmdir)
  6. python which OS are we running on (os, platform)
  7. Get process ID
  8. OS path
  9. Traverse directory tree - list directories recursively
  10. os.path.join
  11. Directory listing
  12. expanduser - handle tilde ~
  13. Listing specific files using glob
  14. External command with system
  15. subprocess
  16. subprocess in the background
  17. Accessing the system environment variables from Python
  18. Set env and run command
  19. shutil
  20. time
  21. sleep in Python
  22. timer
  23. Current date and time datetime now
  24. Converting string to datetime
  25. datetime arithmeticis
  26. Rounding datetime object to nearest second
  27. Signals and Python
  28. Sending Signal
  29. Catching Signal
  30. Catching Ctrl-C on Unix
  31. Catching Ctrl-C on Unix confirm
  32. Alarm signal and timeouts
  33. deep copy list
  34. deep copy dictionary
  35. Exercise: Catching Ctrl-C on Unix 2nd time
  36. Exercise: Signals
  37. Ctrl-z