PythonHub
2.54K subscribers
2.35K photos
50.2K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
How to build your first Scrapy extension

This tutorial uses a simple audio notification plugin to explain how Scrapy extensions work, covering signals, lifecycle hooks, settings, testing, and packaging. It provides a practical introduction to extending Scrapy with custom functionality while showcasing common patterns used across the ecosystem.

https://www.zyte.com/blog/how-to-build-your-first-scrapy-extension/
Array API adoption: what to do with compiled code

The post examines how Array API compatibility and JIT compilation can modernize legacy scientific Python code for GPUs and multicore CPUs. The results suggest developers can achieve significant performance gains across hardware platforms without maintaining specialized accelerator-specific code.

https://labs.quansight.org/blog/array-api-aot-jit
The Fastest Python Struct?

The article explores the performance tradeoffs of Python's various struct-like types, focusing on startup and type-definition costs rather than runtime business logic. Extensive benchmarks reveal that NamedTuple sits in the middle of the pack, while msgspec and C-backed implementations deliver the fastest type creation and startup times.

https://www.crumpledpaper.tech/2026-06-21-python-struct-profiling/
Write a coding agent from first principles

This tutorial will show you how to create your own coding agent from first principles. By doing so, you'll understand how coding agents work under the hood.

https://mathspp.com/blog/write-a-coding-agent-from-first-principles
PixelRAG

PixelRAG replaces traditional text-based web RAG with a pixel-native approach that retrieves and reasons over webpage screenshots. By preserving visual structure and using vision-language models, it aims to improve retrieval accuracy and web understanding.

https://github.com/StarTrail-org/PixelRAG
Wagtail as Django admin on steroids

Wagtail can be used as a drop-in replacement for Django Admin, providing a more polished UI and powerful customization capabilities. The article demonstrates how developers can adopt Wagtail incrementally while retaining their existing Django architecture.

https://timonweb.com/wagtail/wagtail-as-django-admin-on-steroids/
You Don’t Need That Design Pattern

Using Python examples, the video explores the tradeoff between simplicity and abstraction, showing how design patterns can introduce unnecessary complexity when applied too early. It provides a practical rule of thumb for recognizing when a pattern adds value versus when it becomes overengineering.

https://www.youtube.com/watch?v=xns3InDkAiA
music-assistant / server

Music Assistant is a free, opensource Media library manager that connects to your streaming services and a wide range of connected speakers. The server is the beating heart, the core of Music Assistant and must run on an always-on device like a Raspberry Pi, a NAS or an Intel NUC or alike.

https://github.com/music-assistant/server
Graphsignal

Graphsignal is a production-scale inference profiling platform that helps engineers optimize AI performance across models, engines, GPUs, and other accelerators. I

https://github.com/graphsignal/graphsignal-profiler
TIRx: An Open Compiler Stack for Evolving Frontier ML Kernels

TIRx introduces an open-source, hardware-native DSL and compiler stack for writing high-performance ML kernels that can keep pace with rapidly evolving AI hardware. Built on Apache TVM, it combines low-level control, compiler-assisted abstractions, and agent-friendly tooling to support expert developers, automated kernel generation, and future accelerator architectures.

https://tvm.apache.org/2026/06/22/tirx
Use AI to not use AI (as much)

Rather than using AI to solve the same problem repeatedly, the author suggests using it to build tools that solve the problem for you. A practical example demonstrates how an AI-generated Python script transformed a one-time GitHub usage analysis into a reusable workflow.

https://www.raymondcamden.com/2026/06/22/use-ai-to-not-use-ai-as-much