25 Essential Python Modules for Beginners

When you have learned a bit of Python, you will know that the number of available modules is overwhelming. As a safe path through this jungle, here is a curated list of 25 modules that I would start with. You can treat the list below as your roadmap through the world of Python modules.

In the ebook: Python 3 Module Examples, you find simple examples for each of them.

Reading/Writing Files

  • csv - reading/writing CSV files
  • python-docx - reading/writing Word documents
  • json - reading/writing JSON documents
  • os - working with paths and directories
  • xlrd - reading Excel spreadsheets
  • xml - reading XML data
  • zipfile - reading/writing zip files

Data Analysis

  • numpy - handling numerical arrays and matrices
  • pandas - handling tables
  • scipy - scientific calculations
  • sklearn - machine learning

Visualisation

Web

  • bottle - simple web server
  • bs4 - parsing HTML documents
  • urllib - accessing web pages

Other

  • itertools - working with lists
  • math - simple math functions
  • pprint - pretty-printing data structures
  • random - generating random numbers
  • re - pattern matching in text
  • sqlite3 - accessing SQLite databases
  • sys - settings of the Python interpreter
  • time - time and date

Blog Topics

Tags

See also