pypi structlog 21.4.0

latest releases: 25.4.0, 25.3.0, 25.2.0...
3 years ago

This release is mostly about a regression when importing using a Python interpreter running with the PYTHONOPTIMIZE=2 environment variable set, or as python -OO. The one new feature is kinda neat too, though!

Changes:

  • Fixed import when running in optimized mode (PYTHONOPTIMIZE=2 or python -OO). #373
  • Added the structlog.threadlocal.bound_threadlocal and structlog.contextvars.bound_contextvars decorator/context managers to temporarily bind key/value pairs to a thread-local and context-local context. #371

Don't miss a new structlog release

NewReleases is sending notifications on new releases.