All notable changes to this project are documented here. The format is based on
Keep a Changelog. Releases are tagged
vX.Y.Z.
2.0.0 - Unreleased
Modernizes the repository scaffolding: packaging, environments, CI and
documentation. No book code under chapterNN/ was changed.
pyproject.tomlwith one PEP 735 dependency group per chapter, managed with uv, plus a committeduv.lock. Supports Python 3.11 to 3.14.requirements/chNN.txtfor installing a single chapter with pip.- Opt-in
ch05-bluetoothgroup that builds PyBluez from a pinned upstream commit, because the last PyPI release no longer builds. standard-cryptbackport sochapter01/passwd_crack.pykeeps working on Python 3.13+, wherecryptwas removed from the standard library (PEP 594). It is Unix-only, like the module it replaces.- Dockerfile and a multi-arch image (
ghcr.io/eonraider/violent-python3) withnmap,tcpdumpand the BlueZ runtime. Images ship with SBOM and provenance attestations. - Dev container configuration for GitHub Codespaces and local IDEs.
tools/deps_scan.py: statically checks that every chapter's imports are declared in its dependency group, imports each dependency in CI, and generates the requirements files.- GitHub Actions: an install matrix (Linux, macOS, Windows x Python 3.11-3.14), a Docker build, link checking, Markdown lint, actionlint and zizmor. Every action is pinned to a commit SHA.
- Dependabot for uv, GitHub Actions, Docker and dev containers.
NOTICE,CONTRIBUTING.md,CODE_OF_CONDUCT.md(Contributor Covenant 2.1),SECURITY.md,CITATION.cff, issue forms and a pull request template.
- The README was rewritten with setup instructions for uv, pip, Docker and
Codespaces, and a chapter table. The conversion notes moved, otherwise unchanged,
to
docs/CONVERSION_NOTES.md. requirements.txtis now generated frompyproject.toml(python tools/deps_scan.py requirements). It lists version ranges, and each release attaches a pinnedrequirements-lock.txt.- Python 3.10 and older are no longer supported. 3.10 reached end of life in October 2026, and current security releases of some dependencies (Pillow 13, for example) require 3.11.
The 2020 pins don't install on current Python. Ranges were raised to the oldest releases that do, and these crossed a major version or a large API boundary. Each installs and imports cleanly in CI on every supported Python, but runtime behaviour against the book code has not been verified yet:
| Package | Was | Now | Used by |
|---|---|---|---|
geoip2 |
~=3.0.0 |
>=4.8.1,<5 |
chapter04 |
mechanicalsoup |
~=0.12.0 |
>=1.3.0,<2 |
chapter06 |
scapy |
~=2.4.3 |
>=2.7.0,<3 (security fix) |
chapter04, chapter05 |
pybluez |
~=0.23 (PyPI) |
upstream commit 82cbba8 |
chapter05 (opt-in) |
requests |
~=2.23.0 |
>=2.33.0 (security fixes) |
chapter03 |
- Poetry configuration (
poetry.lockand the Poetrypyproject.toml), which had placeholder author metadata and an 80 % coverage gate that no test could reach. - The placeholder
tests/tree andCHANGELOG_ENTRY.md, superseded bytools/tests/and this file. - Explicit pins of transitive dependencies (
ptyprocess), now resolved by the lockfile.
- The PyBluez environment marker was
sys_platform == 'darwin'. PyBluez targets Linux (BlueZ), so the marker is nowsys_platform == 'linux'.
- Version floors no longer admit releases with known advisories:
pillow>=13.0.0(chapter 3; earlier releases are affected by advisories fixed only in 13.0),requests>=2.33.0(chapter 3),scapy>=2.7.0(chapters 4 and 5; GHSA-cq46-m9x9-j8w2, code execution when loading an untrusted session file) andpytest>=9.0.3(dev). The lockfile movesfilelock, a dependency of thepre-committooling, to 4.2.10.
The Python 3 conversion itself (2020) and later fixes are recorded in the git history. Notable items:
- Converted all chapters to Python 3 and PEP 8, replacing
optparsewithargparseand file handling with context managers. - Fixed file positions not being reset between reads when one file object was passed to several functions.
- Raised Pillow to 8.3.2 for security fixes.
- Added the Turkish translation (
turkish-languagebranch).