Learn Python - Free Tutorials & AI Guides

Free Python Tutorials, AI Guides & Coding Projects

Python Packaging
How Python wheels are built: a source tour of bdist_wheel, tag algebra and RECORD hashing

How Python wheels are built: a source tour of bdist_wheel, tag algebra and RE...

Every Python developer has lived both sides of the wheel story: pip install landing in two seconds because a compatible .whl sat on PyPI, versus the silent sdist fallback, a local compiler grinding away, and a “failed building wheel for...

Python Packaging
setuptools Source Tour: How dist.py, build_meta.py and the distutils Shim Actually Build a Wheel

setuptools Source Tour: How dist.py, build_meta.py and the distutils Shim Act...

Every Python developer has met this failure at least once: pip install . fails inside an isolated build environment, and the traceback ends somewhere inside setuptools.build_meta or a distutils import that “does not exist” even though the code clearly imports...

Python Packaging
Poetry Source Code: How the Solver, Marker Split and pyproject Loading Really Work

Poetry Source Code: How the Solver, Marker Split and pyproject Loading Really...

Every Python developer knows the moment: you run poetry install, the terminal prints “Resolving dependencies…”, and then you either get a clean lock in seconds or a wall of conflict text about versions you never asked for. Poetry is the...

Python Packaging
How pipx Works: venv Isolation, Shared pip, and the uv Backend

How pipx Works: venv Isolation, Shared pip, and the uv Backend

Every Python developer has been burned by the same mistake: pip install some-cli into the interpreter the system uses, then months later another tool demands a different requests version and the first command starts crashing. Or worse, the tool’s executable...

Python Packaging
How Pipenv Works: A Source Tour of Pipfile Locking, do_install and the Resolver Subprocess

How Pipenv Works: A Source Tour of Pipfile Locking, do_install and the Resolv...

Every Python developer has felt pipenv’s peculiar pain: you run pipenv install, wait through a resolve that seems to take forever, then stare at a Pipfile.lock wondering why the virtualenv directory ends with a cryptic eight-character hash. Or worse —...

Python Packaging
pip Source Tour: How pip install Resolves, Downloads and Builds Packages in src/pip/_internal

pip Source Tour: How pip install Resolves, Downloads and Builds Packages in s...

Everyone knows the moment: you run pip install on a project with a couple of transitive dependencies, and the tool starts backtracking through every version of every package, downloading metadata, building wheels from sdists, and minutes later either solves your...

Python Packaging
Inside Hatch: How the hatchling Build Backend Builds Wheels and the CLI Runs Environment Matrices

Inside Hatch: How the hatchling Build Backend Builds Wheels and the CLI Runs ...

Every Python project that ships to PyPI eventually meets a build backend, and most of us meet it as an opaque black box: pip install prints a wall of “Building wheel” output, something called RECORD fails a hash check, an...

Python Packaging
pypa/build Internals: How python -m build Isolates Envs and Drives PEP 517 Backends

pypa/build Internals: How python -m build Isolates Envs and Drives PEP 517 Ba...

Every Python developer eventually meets the same ghost: pip install . works on your laptop, then a clean CI runner fails with “Backend ‘setuptools.build_meta’ is not available” or a cryptic unmet-dependency dump. What broke is the environment — a leftover...

Desktop
Wails Architecture Deep Dive: Go Runtime, Bindings Generator and the Webview Bridge

Wails Architecture Deep Dive: Go Runtime, Bindings Generator and the Webview ...

Every Go developer shipping a desktop tool eventually hits the GUI question. Electron answers it with Chromium and a Node process, and your 8 MB CLI becomes a 150 MB installer idling at 300 MB of RAM. Tauri answers it...

Desktop
Tauri Architecture Explained: Inside the Rust Core, IPC and the Capability ACL

Tauri Architecture Explained: Inside the Rust Core, IPC and the Capability ACL

Every desktop developer knows the tradeoff. Electron gives you one codebase and ships an entire Chromium instance per app — a hundred megabytes before your first feature. Native toolkits give you tiny binaries and three platform-specific codebases. Tauri’s pitch is...

Scientific Python
How SymPy Works: A Source Tour of Expression Trees, Assumptions and Polynomial Algebra

How SymPy Works: A Source Tour of Expression Trees, Assumptions and Polynomia...

Every numeric programmer eventually hits the same wall: 0.1 + 0.2 is not 0.3, and no amount of floating-point care will make (x + y)**2 expand itself. Symbolic math systems solve this by refusing to evaluate. When you write x...

Scientific Python
How Statsmodels Works: OLS, GLM and ARIMA Behind One LikelihoodModel Contract

How Statsmodels Works: OLS, GLM and ARIMA Behind One LikelihoodModel Contract

You have typed sm.OLS(y, X).fit() a hundred times without thinking about it. Then one day the results object surprises you: .params comes back as a pandas Series carrying your column names, .bse does the same, .conf_int() returns a DataFrame —...

Scientific Python
SciPy Source Code Explained: Sparse Matrices, Optimizer Dispatch and Signal Filters

SciPy Source Code Explained: Sparse Matrices, Optimizer Dispatch and Signal F...

Every Python data or ML project eventually calls SciPy, usually without noticing. Your scipy.sparse matrix multiplies a vector in microseconds; your minimize call converges in forty iterations; your filter design arrives as taps that lfilter streams through. Then one day...

Scientific Python
scikit-image Source Walkthrough: Lazy Imports, Shim Modules, and the _skimage2 Cython Kernels

scikit-image Source Walkthrough: Lazy Imports, Shim Modules, and the _skimage...

Every scientific Python developer has import skimage somewhere in their environment, and most of us treat it like a black box that quietly turns arrays into segmentations, measurements, and warps. The pain starts the day you actually need the source:...

Mobile
React Native New Architecture Source Tour: Fabric, TurboModules and the JSI Bridge

React Native New Architecture Source Tour: Fabric, TurboModules and the JSI B...

Every React Native developer has felt the moment the abstraction leaks. A flat list starts dropping frames on a mid-range Android device, and you discover your fancy native module is silently serializing every argument into JSON, shipping it across a...

Scientific Python
Pillow Source Deep Dive: How Image.open, the Plugin Registry, and libImaging Actually Work

Pillow Source Deep Dive: How Image.open, the Plugin Registry, and libImaging ...

Every Python developer has hit the same trap at least once. Image.open("batch-0442.tiff") returns in twelve milliseconds on a two-gigabyte file, you hand the handle to a worker queue, and four hours later a thread that never touched that file dies...

Desktop
Neutralino Architecture: Inside the Lightweight C++ Desktop App Runtime

Neutralino Architecture: Inside the Lightweight C++ Desktop App Runtime

Every desktop developer has felt this pain: you need a small GUI for a utility — a config editor, a log viewer, a form over a script — and the “easy” answer is Electron. The result ships a full Chromium...

Scientific Python
NetworkX Source Code: How Python's Graph Library Works Internally

NetworkX Source Code: How Python's Graph Library Works Internally

Every data scientist has hit the same wall twice. First, the day you build a dependency graph and realize that the one-liner nx.shortest_path(G, a, b) does far more work behind the scenes than the docs let on. Second, the day...

Mobile
NativeScript Source Tour: How JavaScript Calls Reach Native iOS and Android UI

NativeScript Source Tour: How JavaScript Calls Reach Native iOS and Android UI

Every cross-platform mobile developer has hit the same wall. You write one TypeScript codebase, and then a Label clips its text on iOS, or an Android TabView loses its selected color, and you are suddenly debugging across two worlds at...

Scientific Python
Inside mypy's Source: How Python's Static Type Checker Infers Every Expression

Inside mypy's Source: How Python's Static Type Checker Infers Every Expression

Every Python developer eventually meets the error that starts a fight: Argument 1 to "load" has incompatible type "list[str]"; expected "list[str | None]". The annotation looked right, the runtime code worked, yet CI turned red because a static checker disagreed....

Mobile
Kivy Architecture Internals: EventLoop, the Widget Tree and the Cython Graphics Compiler

Kivy Architecture Internals: EventLoop, the Widget Tree and the Cython Graphi...

Every Kivy developer eventually hits the same wall: a property changes, a touch lands, and you have no idea where the redraw actually happens. With Qt or GTK you can blame a C++ engine behind the bindings; with Kivy there...

Scientific Python
JupyterLab Source Deep Dive: How the 103-Package TypeScript Monorepo Really Works

JupyterLab Source Deep Dive: How the 103-Package TypeScript Monorepo Really W...

Every JupyterLab extension developer eventually hits the same wall: you copy a plugin snippet, call a service you never declared, and it just works. Someone handed you ILayoutRestorer out of thin air, and nobody explained where that object lives, who...

Scientific Python
IPython Source Architecture: How the Interactive Shell Actually Works

IPython Source Architecture: How the Interactive Shell Actually Works

Every Python developer has typed %timeit, ended a line with ?, or pasted a block that began with In [1]: and watched it just work. Almost nobody asks how. The question stops being academic the first time you embed IPython...

Mobile
Flutter Architecture from Source: Widgets, RenderObjects, Layer Trees and the Engine Shell

Flutter Architecture from Source: Widgets, RenderObjects, Layer Trees and the...

Every Flutter developer eventually meets a frame budget they cannot explain. The profiler says setState cost nothing, yet three frames were skipped; the build phase looks clean, but raster time doubled after one innocent Opacity wrapper. The instinctive fix is...

Watch PyShine on YouTube