Repository navigation
v3.0.0
Breaking changes
- Python 3.10+ and Django 5.2+ are now required. Django is an explicit
install dependency. Django 4.2 reached end of life in April 2026, so
the supported matrix is Django 5.2, 6.0 and 6.1. django_statsd.urls(Python 2httplibpatching) has been removed. It
had been silently dead code on Python 3.cjsonandcoffinpatching removed (both packages are long dead).django_statsd.__about__removed. Usedjango_statsd.__version__.- Database timing has been reimplemented on Django's
connection.execute_wrapper()and must be enabled with the new
STATSD_TRACK_DATABASEsetting. The oldTimingCursorWrappernever
worked on Python 3, so no working behaviour was lost.
Fixed
- The middleware scope now uses
asgiref.local.Localinstead of
threading.local, making it correct under ASGI/async deployments. - The tracked view name is stored on the request scope instead of the
shared middleware instance, fixing a race between concurrent requests. - Celery signal receivers were connected with weak references to local
closures and were garbage-collected immediately. Thecelery.status.*
counters now actually fire, per signal invocation instead of once at
import. process_exception/process_responseno longer raiseAttributeError
when the scope was never started.
Internal
- Modern packaging (
pyproject.toml+uv_build),py.typed, ruff
lint/format, strict typing checked by mypy, basedpyright, pyrefly and
ty, 100% test coverage enforced in CI, split GitHub Actions workflows
with PyPI Trusted Publishing, furo-themed documentation. - basedpyright runs without blanket rule suppressions. celery has local
stubs undertypings/instead, and the one genuinely unknown call
into redis is cast at the call site. - Every code sample in README.md and under
docs/is executed as a
test, inside a request the middleware is timing, so a sample that
drifts from the API fails the build. - The documentation is organised by what you want to measure instead of
by which module does it, and every claim about a metric name is
backed by a transcript recorded from a real run and checked by a
test. - The README carries a logo, six badges, a recording of metrics
arriving, a timing breakdown chart and a Grafana screenshot, each one
generated from real behaviour by a committed script.
Signed on 2026-11-12 with ppt sign, after the release.
The files above are the exact PyPI uploads for this version, verified by sha256 against PyPI before signing.
Each file has a GPG signature (.asc, key 149325FD15904E9C4EB89E95E81444E9CE1F695D) and a Sigstore bundle (.sigstore.json).
SHA256SUMS.asc signs the checksum list.
Rebuilt files, if any: none.
How to verify: https://github.com/WoLpH/python-project-tools/blob/master/VERIFY.md