PythonHub
2.49K subscribers
2.35K photos
50K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Python Type Checker Comparison: Speed and Memory Usage

A benchmark comparison of speed and memory usage across Python type checkers including Pyrefly, Ty, Pyright, and Mypy.

https://pyrefly.org/blog/speed-and-memory-comparison/
Rethinking the State Pattern in Python

The video demonstrates a transition from high-boilerplate, inheritance-heavy State Pattern classes to a streamlined, data-driven state machine in Python. By leveraging enums, generics, and decorators, the author creates a reusable engine that makes state transitions explicit and significantly reduces the cognitive load of managing complex object behaviors.

https://www.youtube.com/watch?v=OeirQdzYdnc
CadQuery is an open-source Python library for building 3D CAD models

https://cadquery.github.io/
Django to Browser Push - Without WebSockets, Channels, or Redis

The post shows how to push real-time browser updates in Django without WebSockets, Channels, or Redis by using a simpler HTTP/SSE-based approach. Its main point is that you can get instant UI updates with much less infrastructure and complexity while still keeping the setup practical for existing Django apps.

https://usman.it/django-realtime-updates-without-websockets/
Powering Up Django Development With Claude Code

LLM coding tools can accelerate Django development, but unchecked outputs often create technical debt through poor architecture, weak tests, and overly complex code. The talk focuses on using Claude Code effectively with strong prompts, guardrails, and skepticism so AI becomes a productive assistant rather than a cleanup burden.

https://www.youtube.com/watch?v=MJMex1FNjXI
OriginTracer

This is a low level observability tool with a very flexible extension model. Users write probes and rules and the tool constructs a live causal graph.

https://github.com/Humbulani1234/origintracer
Decoupling Your Business Logic from the Django ORM

As Django apps grow, stuffing business logic into views, models, and managers creates tangled code, slow tests, and ORM-driven performance issues like overfetching and N+1 queries. The solution proposed is moving domain logic into typed plain-Python classes while using the ORM only for persistence, making systems cleaner, faster, easier to test, and easier to evolve.

https://buttondown.com/carlton/archive/decoupling-your-business-logic-from-the-django-orm/