PythonHub
2.49K subscribers
2.35K photos
49.7K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Learn NumPy in 40 Minutes

The video introduces the core concepts of NumPy and shows how its array operations form the foundation of numerical computing in Python. It emphasizes why NumPy is a must-learn tool for data science, AI, machine learning, and scientific workflows.

https://www.youtube.com/watch?v=zI5ducyfyNc
django-polymorphic - Polymorphic models in Django

The video explains Django model inheritance and polymorphic models, showing how django-polymorphic returns the correct subclass types when querying a base model through the ORM. It also covers Django Admin support and integrations with other Django ecosystem packages to make polymorphic models easier to manage.

https://www.youtube.com/watch?v=d8MC2FQ_nqU
7 Things You Didn’t Know Dataclasses Could Do

The video walks through seven lesser-known features of Python’s dataclasses that make code safer, clearer, and easier to maintain, beyond basic use. Each tip shows how dataclasses can reduce boilerplate and improve common patterns in everyday Python code.

https://www.youtube.com/watch?v=YTsJQ4ixq88
Asyncio Finally Got Peewee

Charles Leifer introduces an asyncio compatibility layer for the Peewee ORM that uses greenlet to bridge synchronous database logic with asynchronous event loops without requiring a full codebase rewrite. This implementation allows developers to run standard Peewee queries and transactions within async contexts by using a task-local state management system and specific execution helpers ...

https://charlesleifer.com/blog/asyncio-finally-got-peewee/
Django Time-Based Lookups: A Performance Trap

The article shows how certain Django time-based field lookups can bypass database indexes and turn a simple filter into a full table scan, dramatically slowing queries. It then demonstrates a much faster pattern by computing time boundaries in Python so the database can use the existing index and drop execution time from tens of seconds to under a second.

https://johnnymetz.com/posts/django-time-based-lookups-performance/