↓ Skip to main content

Category: Python

10 posts

Posts

  1. Advanced pytest: Fixtures, Mocking and Hypothesis

    Advanced testing with pytest 8: fixture scopes, parametrize, mocking with mocker and respx, async tests, Hypothesis property tests, snapshots and CI settings.

    8 min read Python

  2. Python Image Processing: Pillow or OpenCV?

    Image processing in Python with Pillow 11+ and OpenCV 4.x: safe uploads, EXIF rotation, WebP, headless OpenCV in Docker and a background processing pipeline.

    8 min read Python

  3. Python Logging Best Practices with structlog

    Python logging best practices: stdlib logging rules, JSON logs with structlog, request IDs, redacting secrets, OpenTelemetry trace IDs, common mistakes.

    7 min read Python