Python Overview

The most versatile language on Earth. Data science, web APIs, automation, AI, scripting — Python does it all with clean, readable syntax. Start with print("Hello") and end up building production ML pipelines.


📚 Learning Path


🐳 Quick Start


🟢 Foundations — 15 Labs

Core Python skills, all verified on Python 3.12.

Lab
Topic
Key Concepts

01

Hello World & Basics

Variables, types, f-strings, REPL

02

Control Flow

if/elif, for, while, comprehensions

03

Functions & Scope

args, kwargs, closures, LEGB

04

Data Structures

list, dict, set, tuple, deque

05

Strings & Regex

str methods, re module, groups

06

File I/O

open, pathlib, JSON, CSV

07

Error Handling

try/except, custom exceptions, finally

08

OOP Basics

class, __init__, inheritance, super()

09

OOP Advanced

@property, @classmethod, @staticmethod

10

Modules & stdlib

os, sys, datetime, collections

11

Comprehensions

list/dict/set/gen expressions

12

Decorators Intro

@wraps, simple wrappers

13

Iterators & Generators

yield, next(), iter()

14

Context Managers

with, __enter__/__exit__

15

Capstone

CLI task manager, file persistence


🔵 Practitioner — 15 Labs

Real-world Python engineering with advanced patterns.

Lab
Topic
Key Concepts

01

Advanced OOP

Metaclasses, descriptors, Protocol, ABC, __slots__

02

Decorators

Parameterized, class decorators, lru_cache, retry/rate-limit

03

Generators & itertools

yield from, lazy pipelines, chain, groupby, combinations

04

Concurrency

threading, Lock, ThreadPoolExecutor, ProcessPoolExecutor

05

Async / Await

asyncio.gather, tasks, timeouts, async generators, asyncio.Queue

06

Testing with pytest

Fixtures, parametrize, unittest.mock, AsyncMock, pytest.approx

07

Type Hints & Generics

TypeVar, Generic[T], TypedDict, Literal, Protocol, Final

08

SQLite & Database

sqlite3, parameterized queries, transactions, Repository pattern

09

REST APIs — FastAPI

Pydantic models, dependency injection, TestClient, background tasks

10

Data Processing

pandas groupby/merge/pivot, numpy vectorized ops, time series

11

CLI Tools

argparse subcommands, rich tables/progress/panels, logging

12

Design Patterns

Singleton, Factory, Observer, Strategy, Command, Builder, Composite

13

Packaging & Modules

pyproject.toml, __init__.py, lazy imports, importlib

14

Context Mgrs & Protocols

__dunder__ deep-dive, descriptor protocol, @total_ordering

15

Capstone — DataPipeline

Async pipeline + SQLite + FastAPI + pandas + rich CLI + pytest

circle-check

🟠 Advanced — 15 Labs

Python internals, security, performance, and production systems.

Lab
Topic
Key Concepts

01

Metaprogramming

__init_subclass__, metaclasses, descriptors, type() factory

02

AST & Bytecode

ast.parse, NodeTransformer, dis, filter DSL compiler

03

Memory Management

tracemalloc, __slots__, weak refs, memoryview, GC cycles

04

Profiling & Performance

timeit, cProfile, memoization, numpy vs pure Python benchmarks

05

Advanced Async

Semaphore, TaskGroup, retry/backoff, asyncio.timeout (3.11+)

06

ctypes & Binary Protocols

struct, ctypes.Structure, array, custom binary file format

07

Cryptography & Security

PBKDF2, HMAC, secrets, JWT-style tokens, tamper-proof audit log

08

Advanced SQLite

Window functions, FTS5, recursive CTEs, WAL mode, partial indexes

09

numpy Advanced

Broadcasting, einsum, fancy indexing, structured arrays

10

pandas Advanced

MultiIndex, time series, pipe(), pd.eval, memory optimisation

11

Advanced Concurrency

ProcessPool, Actor pattern, condition variables, hybrid pipelines

12

Plugin Architecture

importlib discovery, hook systems, DI container, versioned plugins

13

Serialization

pickle, custom JSON encoder/decoder, versioned formats, deepcopy

14

Advanced FastAPI

Lifespan, middleware chains, dependency injection, SSE streaming

15

Capstone — Platform

Metaclass models + SQLite + async + numpy + FastAPI + pytest + rich

circle-check

🛠 Lab Environment

Expected output:


🔗 Resources

Last updated