Python Modules
📚 Python Modules Every Programmer Should Know (Category-Wise)
🔹 1. Standard Library (built-in, must-know)
These come with Python itself.
-
os → operating system interaction (files, paths, env vars)
-
sys → interpreter system functions (args, paths)
-
subprocess → run external processes
-
shutil → file operations (copy, move, delete)
-
pathlib → modern path handling
-
datetime → date/time handling
-
time → time operations & sleep
-
math → basic math functions
-
random → random numbers
-
statistics → mean, median, mode
-
decimal, fractions → precise calculations
-
collections → Counter, deque, defaultdict, namedtuple
-
itertools → combinatorics, iterators
-
functools → caching, partial functions, higher-order utils
-
re → regular expressions
-
json → JSON parsing
-
csv → CSV reading/writing
-
pickle → object serialization
-
logging → logging framework
-
argparse → command-line argument parsing
-
typing → type hints
-
unittest, doctest → testing
-
threading, multiprocessing → concurrency, parallelism
-
asyncio → async programming
-
http.server, urllib, requests (3rd party) → networking basics
🔹 2. Web Development
-
Flask → lightweight web framework
-
Django → full-stack web framework
-
FastAPI → modern async API framework
-
Tornado → scalable async web server
-
Requests → HTTP client
-
httpx → async HTTP client
-
BeautifulSoup (bs4) → HTML parsing
-
lxml → fast XML/HTML parsing
-
Jinja2 → templating
🔹 3. Data Science & Machine Learning
-
NumPy → numerical computing
-
Pandas → data manipulation
-
Matplotlib → visualization
-
Seaborn → statistical plotting
-
Plotly → interactive charts
-
Scikit-learn → ML algorithms
-
SciPy → scientific computing
-
Statsmodels → statistical analysis
-
XGBoost, LightGBM, CatBoost → boosting algorithms
-
TensorFlow → deep learning
-
PyTorch → deep learning
-
Keras → high-level deep learning API
-
OpenCV (cv2) → computer vision
-
PIL / Pillow → image processing
🔹 4. AI / NLP
-
NLTK → natural language processing
-
spaCy → industrial-strength NLP
-
Transformers (Hugging Face) → state-of-the-art NLP models
-
gensim → topic modeling, word embeddings
-
SpeechRecognition → speech-to-text
-
TTS libraries (pyttsx3, gTTS) → text-to-speech
🔹 5. Databases & ORMs
-
sqlite3 → built-in SQLite DB
-
SQLAlchemy → SQL toolkit + ORM
-
Peewee → lightweight ORM
-
Pymongo → MongoDB client
-
Redis-py → Redis client
-
psycopg2 → PostgreSQL
-
mysql-connector-python / PyMySQL → MySQL
🔹 6. Networking & Cybersecurity
-
socket → low-level networking
-
requests → HTTP requests
-
paramiko → SSH connections
-
scapy → packet manipulation
-
cryptography → encryption
-
hashlib → hashing
-
ssl → secure sockets
🔹 7. GUI Development
-
Tkinter → built-in GUI
-
PyQt / PySide → advanced GUIs
-
Kivy → cross-platform GUIs
-
wxPython → native-looking GUIs
-
PyGame → game development
🔹 8. Automation & Scripting
-
selenium → browser automation
-
playwright → modern browser automation
-
pyautogui → keyboard/mouse automation
-
schedule → task scheduling
-
watchdog → file system monitoring
🔹 9. DevOps / Cloud
-
docker-py → Docker API
-
boto3 → AWS SDK
-
google-cloud-python → GCP SDK
-
azure-sdk → Azure SDK
-
fabric → deployment & SSH automation
🔹 10. Testing
-
unittest → built-in testing
-
pytest → advanced testing
-
hypothesis → property-based testing
-
coverage → test coverage
🔹 11. File Handling & Formats
-
openpyxl → Excel files
-
xlrd/xlwt → older Excel formats
-
PyPDF2 / pypdf → PDFs
-
reportlab → PDF generation
-
python-docx → Word docs
-
pytesseract → OCR
-
PIL/Pillow → image files
🔹 12. System Programming
-
ctypes → C library binding
-
cffi → C FFI
-
socket → networking
-
concurrent.futures → concurrency
✅ Tip: You don’t need all of them at once. Learn standard library first, then based on your field (web, ML, automation, etc.) pick relevant ones.
Would you like me to create a visual roadmap (mindmap-style) showing which modules to learn first (like a priority path) depending on your career goal—Web Dev, Data Science, AI, Cybersecurity, Automation?
Comments
Post a Comment