__init__ and Object Construction - Two-Phase Creation at Engineering Depth
Understand how Python actually constructs objects - the difference between __new__ and __init__, two-phase creation, mutable default argument traps, super().__init__() in inheritance chains, and factory patterns with classmethods.
Abstract Base Classes - Enforcing Interfaces at Engineering Depth
Master Python's ABC system - abc.ABC, @abstractmethod, ABCMeta, virtual subclasses via register(), collections.abc built-in protocols, using ABCs in type hints, and the ABCs vs typing.Protocol trade-off.
Asyncio and Async/Await
Master Python's async/await model - coroutines, tasks, gather, event loop, async context managers, and building high-performance I/O-bound applications.
Building an Async API Service
Apply asyncio in production - async FastAPI routes, background tasks, async database access, connection pools, and handling concurrency in a real API service.
Bytecode Inspection - Inside the code Object
Understand Python bytecode and the code object at engineering depth - all co_ attributes explained, how .pyc files work, reading bytecode with marshal, the line number table, closures in bytecode, and practical uses in debuggers and test frameworks.
Classes and Objects - Python's Object Model at Engineering Depth
Understand Python classes and objects at the engineering level - class vs instance namespace, attribute resolution, type as metaclass, class body execution, and the shared mutable attribute trap.
Closures Deep Dive - Free Variables, Cell Objects, and nonlocal
Master Python closures at CPython depth - free variables, cell objects, __closure__, co_freevars, the UnboundLocalError trap, the nonlocal keyword, late binding, factory functions, memoization, and when to use a closure vs a class.
Code Coverage - Measuring What You Test (and What You Miss)
Master code coverage at engineering depth - line vs branch vs condition coverage, coverage.py internals with sys.settrace, pytest-cov, .coveragerc configuration, pragma no cover, coverage in CI, and mutation testing with mutmut to find tests that pass but don't catch bugs.
Composition vs Inheritance - When to Use Each at Engineering Depth
Master the is-a vs has-a distinction, understand why "favour composition over inheritance" exists, implement the delegation pattern, use mixins, refactor inheritance to composition, and apply dependency injection with typing.Protocol for structural typing.
Concurrency Module Projects
Two production-style concurrency engineering projects - a concurrent web scraper and an async API system.
CPython Architecture - The Interpreter at Engineering Depth
Understand CPython's architecture at engineering depth - the execution pipeline, the eval loop, PyObject memory layout, integer caching, string interning, the small object allocator, and alternative Python implementations.
Database Migrations with Alembic
Manage database schema changes safely using Alembic - auto-generated migrations, upgrade/downgrade, migration environments, and production deployment strategies.
Database Module Projects
Three production-style database engineering projects - a CRUD app with proper data layer, a transaction-safe service, and a full ORM-backed API.
Dataclasses - Code Generation, Immutability, and Production Patterns
Master Python's @dataclass decorator at engineering depth - what it generates, field() and default_factory, frozen=True for immutability, __post_init__ for validation, ClassVar vs InitVar, inheritance with dataclasses, ordering, and production patterns in FastAPI and config systems.
Decorators - Wrapping Callables at Engineering Depth
Master Python decorators at full engineering depth - functools.wraps, decorator factories with three-level nesting, class-based decorators, stacking order, production patterns (timing, retry, caching, rate limiting), and how FastAPI/Flask route decorators work under the hood.
Design Patterns in Python - Idiomatic Implementations for Production Code
Master the most important GoF design patterns in idiomatic Python - Singleton, Factory, Abstract Factory, Strategy, Observer, Decorator, Registry, and Builder. For each - GoF intent, Pythonic implementation, and real framework usage.
Disassembly with dis - Reading CPython Bytecode
Master Python bytecode disassembly with the dis module at engineering depth - reading disassembly output, key opcodes explained, value stack evolution, comparing equivalent Python patterns at the instruction level, and practical performance insights.
Dunder Methods - Python's Protocol System at Engineering Depth
Master Python's dunder (double-underscore) method system - comparison protocols, arithmetic operators, container protocols, context managers, callable objects, and attribute access hooks. Learn how Python's syntax maps to method calls.
Encapsulation and Data Hiding - Properties, Name Mangling, and Descriptors
Master Python's encapsulation model - single vs double underscore conventions, name mangling mechanics, @property for controlled access, validation in setters, __slots__, and the descriptor protocol that powers @property, @classmethod, and @staticmethod internally.
FastAPI - Type-Driven APIs with Automatic Validation and Docs
Master FastAPI at engineering depth - ASGI foundations, Pydantic validation, dependency injection, middleware, response models, background tasks, testing, and router organisation for production APIs.
Flask - Building REST APIs the Right Way
Master Flask at engineering depth - application factory pattern, request context proxies, routing, Blueprints, error handlers, testing with test_client, configuration management, and the extension ecosystem for building production-grade REST APIs.
FP Module Projects - Engineering Challenges
Three hands-on functional programming engineering projects for the Python Intermediate module. Build real systems using decorators, generators, closures, composition, and pure functions.
Garbage Collection - Generational GC, Cycle Detection, and Memory Leak Diagnosis
Master CPython's cyclic garbage collector at engineering depth - generational collection, three generations, cycle detection algorithm, gc module API, __del__ and PEP 442, gc.freeze() for fork, gc.get_referrers() for leak diagnosis, and common memory leak patterns.
Generators and yield - Suspended Execution at Engineering Depth
Understand Python generators and yield at engineering depth - frame suspension, the generator state machine, send() and the coroutine protocol, yield from, throw() and close(), memory-efficient pipelines, and the foundation of async/await.
HTTP Deep Dive - What Actually Travels Over the Wire
Master HTTP/1.1 at the byte level - request/response wire format, method semantics, status code families, critical headers, connection pooling, the requests and httpx libraries, HTTP/2 multiplexing, and why every production client needs explicit timeouts.
Immutability Strategies - Tuples, Frozen Dataclasses, and Value Objects
Master Python's immutability toolkit at engineering depth - mutable vs immutable types, shallow vs deep immutability, namedtuple, frozen dataclasses, frozenset, MappingProxyType, and the replace/copy pattern for functional state updates. Covers DDD value objects and Redux-style state in Python.
Indexing and Query Optimization
Understand database indexes from the ground up - B-tree internals, query planning, EXPLAIN ANALYZE, composite indexes, and when indexes hurt performance.
Inheritance - Single, Multiple, and Cooperative at Engineering Depth
Master Python inheritance at the engineering level - what inheritance actually does to namespaces, single and multiple inheritance, the MRO algorithm, cooperative super(), the fragile base class problem, isinstance/issubclass, and when inheritance is correct.
JSON Serialization - Production-Grade Encoding and Decoding
Master JSON serialization in Python at engineering depth - custom encoders, datetime/Decimal/UUID handling, orjson and msgspec for high-throughput APIs, NDJSON streaming, content negotiation, and why float precision silently destroys financial data.
Lambda Expressions - Anonymous Functions at Engineering Depth
Understand Python lambda expressions at engineering depth - anonymous function objects, compile-time vs call-time evaluation, the loop-closure trap, late binding, the default-argument fix, and when lambda is and is not appropriate.
Linting and Formatting - Ruff, Black, isort, and mypy
Master Python code quality tooling at engineering depth - Ruff's rule categories, Black's opinionated formatting, isort profiles, mypy static type checking, pyproject.toml configuration, and how to wire all tools into a coherent developer workflow.
Locks, Semaphores, and Synchronization
Master Python synchronization primitives - Lock, RLock, Semaphore, Event, Condition, and Barrier - and when to use each to build correct concurrent systems.
map, filter, reduce - Lazy Iteration and the Pipeline Model
Understand Python's map, filter, and reduce at engineering depth - lazy iterators, pipeline composition, functools.reduce and left-fold semantics, performance trade-offs, and when to prefer list comprehensions.
Memory Profiling - tracemalloc, memory_profiler, objgraph, and pympler
Profile and debug Python memory usage at engineering depth - sys.getsizeof shallow vs deep size, tracemalloc snapshots and leak detection, memory_profiler line-by-line analysis, objgraph retention paths, pympler recursive sizing, and practical workflows for diagnosing real-world memory leaks.
Middleware - Wrapping Every Request and Response
Master middleware at engineering depth - WSGI vs ASGI middleware, the onion model, request ID propagation, timing, structured logging, CORS, rate limiting with Redis, JWT authentication, and when to use middleware vs dependency injection.
Mocking - Patch Where the Name Is Used, Not Where It Is Defined
Master Python mocking at engineering depth - the golden patching rule, Mock vs MagicMock, patch as decorator and context manager, autospec, side_effect, AsyncMock, pytest-mock, and the typo that silently passes your tests.
Module 01 - Object-Oriented Programming Overview
Master Python's object model at engineering depth - classes, instances, dunder methods, encapsulation, inheritance, MRO, composition, abstract base classes, dataclasses, SOLID principles, and production design patterns.
Module 02 - Functional Programming Overview
Master Python's functional programming model at engineering depth - lambdas, map/filter/reduce, generators, iterators, decorators, closures, pure functions, immutability, functools, and partial application and currying.
Module 03 - Python Internals Overview
Understand CPython's implementation details at engineering depth - bytecode, the eval loop, the GIL, reference counting, garbage collection, memory profiling, sys/inspect, and the import system.
Module 04 - Testing and Quality Overview
Build production-grade test suites at engineering depth - unittest, pytest, mocking, TDD, code coverage, linting, and pre-commit hooks that enforce quality at every commit.
Module 04 Projects - Testing and Quality
Overview of the two hands-on engineering projects for the Testing and Quality module - a full pytest suite for a banking system and a complete CI quality pipeline setup.
Module 06 - APIs and Web Basics
Master HTTP at the wire level, REST design principles, Flask, FastAPI, request/response lifecycle, middleware, JSON serialization, and Pydantic validation - the complete engineering foundation for building production web APIs in Python.
Module 06 Projects - Overview
Two production-focused projects for Module 06 - a fully tested Task Management REST API with FastAPI and SQLAlchemy, and a local deployment stack with Docker, Nginx, PostgreSQL, and Alembic migrations.
Module 07 - Databases Overview
Master database engineering in Python - SQL, SQLite, PostgreSQL, transactions, indexing, SQLAlchemy ORM, and migrations.
Module 08 - Concurrency Overview
Master concurrency in Python - threading, multiprocessing, asyncio, event loops, race conditions, locks, and building production async systems.
MRO - Method Resolution Order and the C3 Linearisation Algorithm
Understand Python's Method Resolution Order at engineering depth - the diamond problem, C3 linearisation step by step, how super() traverses the MRO (not just "calls parent"), mixin patterns that depend on MRO, Django/Flask examples, and MRO failure cases.
Multiprocessing in Python
Bypass the GIL with multiprocessing - Process, Pool, shared memory, queues, pipes, and when to use processes instead of threads.
OOP Module Projects - Engineering Challenges
Four hands-on OOP engineering projects for the Python Intermediate module. Build real systems using classes, inheritance, ABCs, dunders, and composition.
ORM with SQLAlchemy
Master SQLAlchemy - the declarative ORM, session management, relationships, lazy vs eager loading, and building production data access layers.
Packaging and Environments - Module Overview
Master Python packaging and environments at full engineering depth - virtual environments, pip and lockfiles, pyproject.toml, Poetry, semantic versioning, and publishing to PyPI for production-grade projects.
Packaging Projects - Overview
Overview of hands-on projects for Module 05 - Packaging and Environments. Build, test, version, and publish a real Python utility package from scratch.
Partial Application and Currying - functools.partial, operator, and Function Pipelines
Master partial application and currying at engineering depth - functools.partial internals, inspecting partial objects, the distinction between partial application and currying, implementing currying in Python, the operator module as curried-style operations, function composition with reduce, and real-world usage in Django ORM, sorted(), and data pipelines.
pip and requirements - Dependency Management in Practice
Master pip and requirements files at full engineering depth - dependency resolution, version specifiers, pip-tools lockfiles, layered requirements, hash verification, supply-chain security, and private package indexes for production workflows.
Poetry - Dependency Management and Packaging Done Right
Master Poetry at engineering depth - lockfile mechanics, version constraints, dependency groups, virtualenv management, publishing, and CI integration for reproducible Python builds.
PostgreSQL with Python
Connect Python to PostgreSQL using psycopg2 and psycopg3 - connection pooling, parameterized queries, JSONB, arrays, and production connection management.
Pre-Commit Hooks - Automate Quality Gates Before Every Commit
Master the pre-commit framework at engineering depth - Git hook mechanics, .pre-commit-config.yaml structure, building production hook pipelines with ruff, black, mypy, detect-secrets, and pytest, CI integration, team adoption strategy, and hook performance tuning.
Project 01 - Banking System Simulator
Build a banking system using Python OOP. Covers inheritance, @property validation, @classmethod factory methods, __repr__, overdraft protection, and transaction history.
Project 01 - Bytecode Visualizer
Build a Python bytecode analysis tool using the ast module, dis.get_instructions(), and CPython's value stack model. Parse source to AST, disassemble to bytecode, simulate stack evolution, and compare two implementations side by side.
Project 01 - Custom Decorator Library
Build a production-quality Python decorator library with retry, rate limiting, timeout, argument validation, and structured call logging. Covers closures, functools.wraps, inspect.signature, and decorator composition.
Project 01 - Full Test Suite for a Banking System
Build a production-quality pytest test suite for the BankAccount and SavingsAccount system - fixtures, parametrized edge cases, mocked external dependencies, integration tests, Hypothesis property-based tests, and 90% branch coverage enforcement.
Project 01 - Publish an Internal Utility Package
Build, test, version, and publish pyutils-engineersofai - a typed Python utility library with src/ layout, hatchling build backend, full pytest coverage, CHANGELOG, and GitLab CI pipeline that publishes on v* tags.
Project 01 - Task Management REST API
Build a production-quality Task Management REST API with FastAPI, Pydantic v2, SQLAlchemy, pytest TestClient, RFC 7807 error responses, request ID middleware, and Docker - full CRUD, pagination, filtering, and OpenAPI docs.
Project 02 - CI Quality Pipeline Setup
Configure a complete Python quality pipeline from scratch - pre-commit hooks, pyproject.toml tool configuration, GitLab CI four-stage pipeline, tox/nox multi-version testing, Makefile targets, coverage gate, and JUnit test report artifacts.
Project 02 - Lazy Evaluation Pipeline
Build a lazy data processing pipeline in Python that handles datasets larger than RAM. Covers generators, generator chaining, lazy evaluation, immutable pipeline objects, and streaming architecture.
Project 02 - Library Management System
Build a library management system using Python OOP. Covers __repr__, __eq__, __hash__, Abstract Base Classes, checkout systems with date tracking, overdue detection, and fine calculation.
Project 02 - Local Deployment Setup
Configure a production-like local deployment stack for the Task Management API - multi-stage Dockerfile, Docker Compose with Nginx and PostgreSQL, Alembic migrations, Pydantic BaseSettings, health checks, graceful shutdown, and a Makefile for operations.
Project 02 - Mini Profiler Tool
Build a production-quality Python profiler using sys.setprofile(), tracemalloc, and call tree construction. Supports context manager and decorator usage, formatted report tables, run comparison, and JSON export for CI integration.
Project 03 - Chess Engine (OOP Version)
Build a working chess engine in Python using ABCs, dunders, dataclasses, and composition. Covers Piece ABC, concrete piece classes, Board with __getitem__/__setitem__, Move dataclass, check detection, and algebraic notation.
Project 03 - Functional Data Processor
Build a functional-style data transformation system in Python using function composition, pipe, partial, singledispatch, and the Result monad pattern. All functions are pure; error handling avoids exceptions.
Project: Async Data Aggregation API
Build an async FastAPI service that aggregates data from multiple external APIs concurrently - with caching, rate limiting, circuit breaking, and background refresh.
Project: Concurrent Web Scraper
Build a production-grade concurrent web scraper using ThreadPoolExecutor and asyncio - rate limiting, retry logic, robots.txt compliance, and structured output.
Project: Library Management System
Build a command-line library management system backed by SQLite - books, members, loans, with proper SQL, transactions, and a clean data access layer.
Project: Transaction-Safe Payment Service
Build a transaction-safe payment processing service with PostgreSQL - account transfers, idempotency, retry on deadlock, and audit logging.
Publishing Packages - From Source to PyPI
Master Python package publishing at engineering depth - sdist vs wheel formats, build backends, TestPyPI workflow, twine and Poetry publishing, API tokens, private registries, and automated CI/CD release pipelines.
Pure Functions - Testability, Memoisation, and the Functional Core Pattern
Master pure functions at engineering depth - same inputs always produce same outputs with no side effects, referential transparency, how to identify and eliminate side effects, the functional core / imperative shell architecture, and why purity unlocks testability, caching, and thread safety.
pyproject.toml - The Modern Python Project Standard
Master pyproject.toml at full engineering depth - PEP 517/518/621 build system specification, build backends, the full project table, optional dependencies, entry points, tool configuration, src layout, dynamic versioning, and building distribution artifacts.
pytest - The Industry-Standard Test Framework
Master pytest at full engineering depth - assertion rewriting via AST transformation, fixtures with scope, conftest.py, parametrize, monkeypatch, capsys, built-in marks, essential plugins, and pyproject.toml configuration for production test suites.
Python __init__ Practice Problems & Exercises
Solve 11 Python __init__ and object construction — two-phase creation at engineering depth problems. Covers __init__ practice, object construction, __new__ v...
Python Abstract Base Classes — Enforcing: Practice Problems & Exercises
Solve 11 Python abstract base classes — enforcing interfaces at engineering depth problems. Covers abstract base, abc module, abstractmethod practice. Hints ...
Python Asyncio and Async/Await Practice Problems & Exercises
Solve 11 Python asyncio and async/await problems. Covers asyncio practice, async await, asyncio gather. Hints and solutions.
Python Building an Async API Service: Practice Problems & Exercises
Solve 11 Python building an async api service problems. Covers async api, fastapi async, async database. Hints and solutions.
Python Bytecode Inspection Practice Problems & Exercises
Solve 11 Python bytecode inspection problems. Covers code object, co_code practice, co_consts exercises. Hints and solutions.
Python Classes Practice Problems & Exercises
Solve 11 Python classes and objects — python's object model at engineering depth problems. Covers classes and, class definition, object instantiation. Hints ...
Python Closures Deep Dive Practice Problems & Exercises
Solve 11 Python closures deep dive problems (4 Easy, 4 Medium, 3 Hard). Practice closures deep with hints, runnable code, and solutions.
Python Code Coverage Practice Problems & Exercises
Solve 11 Python code coverage problems (4 Easy, 4 Medium, 3 Hard). Practice coverage.py exercises, branch coverage with hints, runnable code, and solutions.
Python Composition Practice Problems & Exercises
Solve 11 Python composition vs inheritance — when to use each at engineering depth problems. Covers composition vs, composition over, delegation pattern. Hin...
Python CPython Architecture Practice Problems & Exercises
Solve 11 Python cpython architecture problems. Covers eval loop, PyObject layout, integer caching. Hints and solutions.
Python Database Migrations with Alembic: Practice Problems & Exercises
Solve 11 Python database migrations with alembic problems. Covers alembic migrations, database schema, alembic upgrade. Hints and solutions.
Python Dataclasses — Code Generation, Immutability,: Practice Problems & Exercises
Solve 11 Python dataclasses — code generation, immutability, and production patterns problems. Covers dataclasses practice, @dataclass exercises. Hints and s...
Python Decorators — Wrapping Callables at: Practice Problems & Exercises
Solve 11 Python decorators — wrapping callables at engineering depth problems. Covers decorators practice, functools.wraps exercises. Hints and solutions.
Python Design Patterns in Python —: Practice Problems & Exercises
Solve 11 Python design patterns in python — idiomatic implementations for production code problems. Covers design patterns, singleton pattern, factory patter...
Python Disassembly with dis Practice Problems & Exercises
Solve 11 Python disassembly with dis problems. Covers dis module, bytecode disassembly, opcodes practice. Hints and solutions.
Python Dunder Methods — Python's Protocol: Practice Problems & Exercises
Solve 11 Python dunder methods — python's protocol system at engineering depth problems. Covers dunder methods, magic methods, operator overloading. Hints an...
Python Encapsulation Practice Problems & Exercises
Solve 11 Python encapsulation and data hiding — properties, name mangling, and descriptors problems. Covers encapsulation practice, properties exercises. Hin...
Python FastAPI Practice Problems & Exercises
Solve 11 Python fastapi problems (4 Easy, 4 Medium, 3 Hard). Practice fastapi practice, fastapi path, pydantic model with hints, runnable code, and solutions.
Python Flask Practice Problems & Exercises
Solve 11 Python flask problems (4 Easy, 4 Medium, 3 Hard). Practice flask practice, flask routing, flask blueprints with hints, runnable code, and solutions.
Python Functools Module Practice Problems & Exercises
Solve 11 Python functools module problems (4 Easy, 4 Medium, 3 Hard). Practice functools module with hints, runnable code, and solutions.
Python Garbage Collection — Generational GC: Practice Problems & Exercises
Solve 11 Python garbage collection — generational gc and cycle detection problems. Covers garbage collection, gc module, cyclic garbage. Hints and solutions.
Python Generators Practice Problems & Exercises
Solve 11 Python generators and yield — suspended execution at engineering depth problems. Covers generators practice, yield exercises, generator state. Hints...
Python HTTP Deep Dive Practice Problems & Exercises
Solve 11 Python http deep dive problems. Covers http practice, http methods, http status, http headers. Hints and solutions.
Python Immutability Strategies Practice Problems & Exercises
Solve 11 Python immutability strategies problems (4 Easy, 4 Medium, 3 Hard). Practice immutability strategies with hints, runnable code, and solutions.
Python Indexing Practice Problems & Exercises
Solve 11 Python indexing and query optimization problems. Covers database indexing, sql index, b-tree index. Hints and solutions.
Python Inheritance — Single, Multiple, and: Practice Problems & Exercises
Solve 11 Python inheritance — single, multiple, and cooperative at engineering depth problems. Covers inheritance practice, single inheritance. Hints and sol...
Python Internals Module Projects - Engineering Challenges
Two hands-on Python internals engineering projects for the Python Intermediate module. Build real tools using CPython's bytecode APIs, the dis module, AST inspection, tracemalloc, and sys.setprofile.
Python JSON Serialization Practice Problems & Exercises
Solve 11 Python json serialization problems. Covers json dumps, custom json, dataclass serialization. Hints and solutions.
Python Lambda Expressions — Anonymous Functions: Practice Problems & Exercises
Solve 11 Python lambda expressions — anonymous functions at engineering depth problems. Covers lambda expressions, lambda exercises, lambda sorting. Hints an...
Python Linting and Formatting Practice Problems & Exercises
Solve 11 Python linting and formatting problems. Covers linting practice, formatting exercises, flake8 problems. Hints and solutions.
Python Locks, Semaphores, Practice Problems & Exercises
Solve 11 Python locks, semaphores, and synchronization problems. Covers lock practice, semaphore exercises, threading lock. Hints and solutions.
Python map, filter, reduce — Lazy: Practice Problems & Exercises
Solve 11 Python map, filter, reduce — lazy iteration and the pipeline model problems. Covers map filter, map exercises, filter practice. Hints and solutions.
Python Memory Profiling — tracemalloc, sys.getsizeof,: Practice Problems & Exercises
Solve 11 Python memory profiling — tracemalloc, sys.getsizeof, objgraph, and pympler problems. Covers memory profiling, tracemalloc exercises, memory leak. H...
Python Middleware Practice Problems & Exercises
Solve 11 Python middleware problems. Covers middleware practice, logging middleware, rate limiting. Hints and solutions.
Python Mocking and Test Doubles Practice Problems & Exercises
Solve 11 Python mocking and test doubles problems. Covers mocking practice, unittest mock, mock patch. Hints and solutions.
Python MRO — Method Resolution Order: Practice Problems & Exercises
Solve 11 Python mro — method resolution order and the c3 linearisation algorithm problems. Covers MRO practice, method resolution, C3 linearisation. Hints an...
Python Multiprocessing in Python Practice Problems & Exercises
Solve 11 Python multiprocessing in python problems. Covers multiprocessing practice, process pool, shared memory. Hints and solutions.
Python ORM with SQLAlchemy Practice Problems & Exercises
Solve 11 Python orm with sqlalchemy problems. Covers sqlalchemy practice, sqlalchemy orm, sqlalchemy session. Hints and solutions.
Python Partial and Currying Practice Problems & Exercises
Solve 11 Python partial and currying problems (4 Easy, 4 Medium, 3 Hard). Practice partial and with hints, runnable code, and solutions.
Python pip and Requirements Practice Problems & Exercises
Solve 11 Python pip and requirements problems. Covers pip practice, requirements.txt exercises. Hints and solutions.
Python Poetry Practice Problems & Exercises
Solve 11 Python poetry problems. Covers poetry practice, poetry lockfile, poetry dependency. Hints and solutions.
Python PostgreSQL with Python Practice Problems & Exercises
Solve 11 Python postgresql with python problems. Covers postgresql practice, psycopg2 python, postgresql jsonb. Hints and solutions.
Python Pre-Commit Hooks Practice Problems & Exercises
Solve 11 Python pre-commit hooks problems. Covers pre-commit config, git hooks, pre-commit tutorial. Hints and solutions.
Python Publishing Packages Practice Problems & Exercises
Solve 11 Python publishing packages problems. Covers pypi upload, wheel sdist, twine upload. Hints and solutions.
Python Pure Functions Practice Problems & Exercises
Solve 11 Python pure functions problems (4 Easy, 4 Medium, 3 Hard). Practice pure functions with hints, runnable code, and solutions.
Python pyproject.toml Practice Problems & Exercises
Solve 11 Python pyproject.toml problems. Covers pyproject.toml practice, PEP 517, build backend. Hints and solutions.
Python pytest Framework Practice Problems & Exercises
Solve 11 Python pytest framework problems. Covers pytest practice, pytest exercises, pytest problems. Hints and solutions.
Python Race Conditions Practice Problems & Exercises
Solve 11 Python race conditions and thread safety problems. Covers race condition, thread safety, data race. Hints and solutions.
Python Reference Counting Practice Problems & Exercises
Solve 11 Python reference counting problems. Covers sys getrefcount, memory management, weakref exercises. Hints and solutions.
Python Representation Practice Problems & Exercises
Solve 11 Python representation and string methods — __repr__, __str__, __format__ at engineering depth problems. Covers __repr__ __str__, __format__ exercise...
Python Request-Response Lifecycle: Practice Problems & Exercises
Solve 11 Python request-response lifecycle problems. Covers request response, wsgi callable, middleware execution. Hints and solutions.
Python REST Principles Practice Problems & Exercises
Solve 11 Python rest principles problems (4 Easy, 4 Medium, 3 Hard). Practice rest api, restful resource, crud http with hints, runnable code, and solutions.
Python Semantic Versioning Practice Problems & Exercises
Solve 11 Python semantic versioning problems. Covers semver python, version specifiers, breaking changes. Hints and solutions.
Python SOLID Principles in Python —: Practice Problems & Exercises
Solve 11 Python solid principles in python — engineering patterns for maintainable code problems. Covers SOLID principles, single responsibility, open closed...
Python SQL Fundamentals Practice Problems & Exercises
Solve 11 Python sql fundamentals problems (4 Easy, 4 Medium, 3 Hard). Practice sql select, sql group, sql window with hints, runnable code, and solutions.
Python SQLite with Python Practice Problems & Exercises
Solve 11 Python sqlite with python problems. Covers sqlite practice, sqlite3 python, sqlite connection. Hints and solutions.
Python sys Practice Problems & Exercises
Solve 11 Python sys and inspect — runtime introspection problems. Covers sys module, inspect module, inspect.signature problems. Hints and solutions.
Python TDD Principles Practice Problems & Exercises
Solve 11 Python tdd principles problems. Covers TDD practice, test driven, red green, TDD tutorial. Hints and solutions.
Python The Event Loop Explained Practice Problems & Exercises
Solve 11 Python the event loop explained problems. Covers event loop, asyncio event, call_soon call_later. Hints and solutions.
Python The GIL Explained Practice Problems & Exercises
Solve 11 Python the gil explained problems. Covers GIL practice, global interpreter, GIL threading. Hints and solutions.
Python The Iterator Protocol — How: Practice Problems & Exercises
Solve 11 Python the iterator protocol — how python's for loop really works problems. Covers iterator protocol, __iter__ __next__, iterable vs. Hints and solu...
Python The Python Import System —: Practice Problems & Exercises
Solve 11 Python the python import system — importlib, finders, loaders, and import hooks problems. Covers import system, importlib exercises, sys.modules cac...
Python Threading in Python Practice Problems & Exercises
Solve 11 Python threading in python problems. Covers threading practice, thread creation, daemon thread. Hints and solutions.
Python ThreadPoolExecutor Practice Problems & Exercises
Solve 11 Python threadpoolexecutor and processpoolexecutor problems. Covers ThreadPoolExecutor practice, concurrent futures. Hints and solutions.
Python Transactions Practice Problems & Exercises
Solve 11 Python transactions and data integrity problems. Covers database transactions, acid python, database isolation. Hints and solutions.
Python unittest Framework Practice Problems & Exercises
Solve 11 Python unittest framework problems (4 Easy, 4 Medium, 3 Hard). Practice unittest practice, unittest exercises with hints, runnable code, and solutions.
Python Validation with Pydantic Practice Problems & Exercises
Solve 11 Python validation with pydantic problems. Covers pydantic practice, pydantic basemodel, field validator. Hints and solutions.
Python venv and virtualenv Practice Problems & Exercises
Solve 11 Python venv and virtualenv problems. Covers venv practice, virtualenv exercises, venv activation. Hints and solutions.
Race Conditions and Thread Safety
Understand race conditions at the CPU level - why they happen, how to detect them, and how to write thread-safe Python code that behaves correctly under concurrency.
Reference Counting - How CPython Manages Memory at the C Level
Master CPython's reference counting mechanism at engineering depth - ob_refcnt, sys.getrefcount, ctypes raw refcount access, tp_dealloc, reference cycles, weakref module, and why del x does not immediately destroy an object.
Representation and String Methods - __repr__, __str__, __format__ at Engineering Depth
Master Python's string representation protocol - __repr__ vs __str__, the eval() contract, __format__ for custom f-string specs, __bytes__, the !r !s !a conversion flags, and how great repr() transforms production debugging.
Request-Response Lifecycle - Every Step From Client to Handler and Back
Trace an HTTP request through its full 15+ step lifecycle - DNS, TCP, TLS, load balancer, reverse proxy, ASGI server, middleware, routing, validation, handler, serialisation, and response - with production debugging techniques.
REST Principles - Designing APIs That Don't Break Clients
Master REST at engineering depth - Roy Fielding's six constraints, uniform interface, URL design, HTTP method semantics, status codes, pagination patterns, versioning strategies, RFC 7807 error format, and the Richardson Maturity Model.
Semantic Versioning - The Contract Behind Every Version Number
Master Semantic Versioning at engineering depth - MAJOR.MINOR.PATCH definitions, breaking change classification, Python version specifiers, pre-release ordering, CalVer, changelog discipline, and Git tagging for releases.
SOLID Principles in Python - Engineering Patterns for Maintainable Code
Master all five SOLID principles with Python-specific implementations - SRP with module-level decomposition, OCP with typing.Protocol, LSP violations and their consequences, ISP with small focused ABCs, and DIP with constructor injection. Production code examples for each.
SQL Fundamentals for Python Engineers
Master SQL from an engineering perspective - SELECT, JOIN, GROUP BY, subqueries, window functions, and writing queries that scale.
SQLite with Python
Use SQLite for development, testing, and embedded applications - the sqlite3 module, connection management, cursors, parameterized queries, and row factories.
sys and inspect - Runtime Introspection at Engineering Depth
Master the sys and inspect modules at engineering depth - sys.argv, sys.path, sys.modules cache, sys.settrace, sys._getframe, inspect.signature with all parameter kinds, inspect.getsource, inspect.stack, and how FastAPI, pytest, and click use these modules to build their core features.
TDD Principles - Write the Test First, Let Failure Guide the Design
Master Test-Driven Development at engineering depth - the Red-Green-Refactor cycle, the three laws of TDD, worked BankAccount example, test naming, the test pyramid, London vs Detroit schools, and when TDD surfaces design problems before production.
The Event Loop Explained
Understand Python's asyncio event loop at engineering depth - how it works, selectors, callbacks, handles, and debugging event loop issues in production.
The functools Module - lru_cache, partial, reduce, singledispatch and More
Master the entire functools module at engineering depth - LRU cache internals and eviction, wraps, partial and partialmethod, reduce with operator, total_ordering, cached_property, singledispatch and singledispatchmethod, thread safety considerations, and real-world usage patterns.
The GIL Explained - What It Is, What It Isn't, and How to Work Around It
Master Python's Global Interpreter Lock at engineering depth - what the GIL protects, why counter += 1 is not atomic, the check interval, I/O vs CPU-bound threading, multiprocessing, C extensions that release the GIL, and Python 3.13 free-threaded mode.
The Iterator Protocol - How Python's for Loop Really Works
Master Python's iterator protocol at engineering depth - __iter__, __next__, StopIteration, the iterable vs iterator distinction, for-loop desugaring, iter() with sentinel, next() with default, and lazy pipelines with itertools.
The Python Import System - importlib, Finders, Loaders, and Import Hooks
Master the Python import system at engineering depth - sys.modules cache, import resolution order, finders and loaders, importlib.import_module, relative vs absolute imports, __init__.py, __all__, circular imports, custom import hooks, and importlib.reload.
Threading in Python
Master Python threading - Thread creation, daemon threads, thread lifecycle, sharing state, the GIL's real impact, and when threading actually helps performance.
ThreadPoolExecutor and ProcessPoolExecutor
Master concurrent.futures - ThreadPoolExecutor, ProcessPoolExecutor, Future objects, as_completed, and building production-grade concurrent task pipelines.
Transactions and Data Integrity
Master database transactions in Python - ACID properties, isolation levels, deadlocks, savepoints, and building transaction-safe data layers.
unittest - The Standard Library Test Framework
Master Python's unittest framework at engineering depth - TestCase lifecycle, all assertion methods, assertRaises as context manager, setUp/tearDown/setUpClass, unittest.mock.patch, TestSuite, skip decorators, and subtests for parametrised testing.
Validation with Pydantic - Production Request and Response Models
Master Pydantic v2 at engineering depth - BaseModel, Field constraints, field and model validators, ORM mode, discriminated unions, partial updates for PATCH endpoints, JSON Schema generation, and the model_dump gotchas that silently corrupt production data.
venv and virtualenv - Python Environment Isolation
Master Python virtual environments at full engineering depth - how venv works at the filesystem level, PATH manipulation, pyvenv.cfg, pyenv for Python version management, and why Docker containers are not a substitute for virtual environments.