Python Hub Weekly Digest This week in Python, popular projects included the 'awesome-agentic-patterns', a catalogue of AI patterns, and 'PennyLane', a Python library for quantum computing. There was also a discussion on refactoring mistakes in Python. Interesting articles covered topics like Python's reference counting optimizations and the use of big-O scaling for testing software speed. In other news, Anthropic made a significant contribution to the Python Software Foundation. On Reddit, a user shared a wrapper for unlimited free access to GPT-4o, Gemini 2.5, and Llama 3. Wishing you a great week and happy coding!
awesome-agentic-patterns
A curated catalogue of awesome agentic AI patterns.
PennyLane
PennyLane is a cross-platform Python library for quantum computing, quantum machine learning, and quantum chemistry. Built by researchers, for research.
Moving Scratch generation to Python on browser
Jsonic – Python JSON serialization that works
I Made a Classic Refactoring Mistake
Arjan addresses mistakes in his prior video's refactoring of a messy order approval function, identifying three logic errors via failing tests. He discusses refactoring pitfalls like incomplete tests (86% coverage despite bugs), tricky and/or conditions, data structures, and the lack of a true "ground truth" in business logic.
pyPFC: An open-source Python package for phase field crystal simulations
A Python framework for setting up, running and analyzing 3D Phase Field Crystal (PFC) simulations.
Python Hub Weekly Digest for 2026-01-11
FastScheduler – Decorator-first Python task scheduler, async support
Axis – A systems programming language with Python syntax
WebAssembly as a Python Extension Platform
MyTorch – Minimalist autograd in 450 lines of Python
How uv got so fast
uv's speed comes from engineering decisions, not just Rust. Static metadata, dropping legacy formats, and standards that didn't exist five years ago.
Recent optimizations in Python's Reference Counting
CPython 3.14+ introduced LOAD_FAST_BORROW, a bytecode optimization that skips reference count increments when loading local variables in hot loops, using static lifetime analysis to ensure safety. This reduces memory management overhead in performance-critical code like tight loops, mimicking Rust-style borrowing while preserving Python's reference counting model, with further JIT optimi...
Unit testing your code’s performance, part 1: Big-O scaling
Your software’s speed needs some form of testing; big-O scaling is a good starting point.
davila7 / claude-code-templates
CLI tool for configuring and monitoring Claude Code
Pyinfra: Turns Python code into shell commands and runs them on your servers
SnackBase – Open-source, GxP-compliant back end for Python teams
Anthropic has made a large contribution to the Python Software Foundation
Seapie – a Python debugger where breakpoints drop into a REPL
SleepFM
A multimodal sleep foundation model that can predict 130 diseases from 1 night of sleep.
I built a wrapper to get unlimited free access to GPT-4o, Gemini 2.5, and Llama 3 (16k+ reqs/day)
Project by Ruslan Keba. Since 2012. Powered by Python. Made in 🇺🇦Ukraine.