PythonHub
2.4K subscribers
2.35K photos
49.1K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
3 pandas Workflows That Slowed to a Crawl on Large Datasets—Until We Turned on GPUs

NVIDIA shows how switching from pandas to GPU-accelerated cuDF made slow data workflows run up to 30Ă— faster. Common tasks like time-series analysis and dashboard filtering became near-instant with minimal code changes.

https://developer.nvidia.com/blog/3-pandas-workflows-that-slowed-to-a-crawl-on-large-datasets-until-we-turned-on-gpus/
Announcing Toad - a universal UI for agentic coding in the terminal

Will McGugan announces Toad, a new universal terminal UI for AI coding agents built with Textual, offering a flicker-free and interactive experience compared to existing tools. Toad will be open source, supports any backend language, and uses JSON for communication between frontend and backend.

https://willmcgugan.github.io/announcing-toad/
Python Tutorial: Type Hints - From Basic Annotations to Advanced Generics

Corey Schafer explains Python’s type hints, from basic function annotations to advanced features like generics, with practical examples showing their benefits for code clarity, early bug detection, and IDE support. He highlights that type hints are optional and flexible, letting you gradually adopt them in your projects.

https://www.youtube.com/watch?v=RwH2UzC2rIo
Django: iterate through all registered URL patterns

Adam Johnson demonstrates a Python generator function that recursively traverses Django’s URLResolver structure to enumerate all registered URLPattern objects, including those in nested namespaces. He shows how this can be used for tasks like auditing registered views or writing tests to ensure all class-based views inherit from a specific base class.

https://adamj.eu/tech/2025/07/22/django-iterate-url-patterns/
metap: A Meta-Programming Layer for Python

metap is a new Python meta-programming layer that supports program augmentation, user-defined code generation, and structural introspection. It allows developers to automate coding patterns, extend Python with customizable macros, and have code inspect and enforce its own structure, improving maintainability and correctness. Unlike Python’s built-in tools, metap offers a unified, extensi...

https://sbaziotis.com/compilers/metap.html
Semi-Automated Assembly Verification in Python using pypcode Semantics

Philip Zucker introduces a Python toolkit that lets users add verification annotations directly to assembly code using macros, enabling semi-automated proof of correct assembly behavior via pypcode, which supports portable, architecture-agnostic analysis. This approach keeps formal verification practical and accessible for real-world low-level programming.

https://www.philipzucker.com/assembly_verify/
Stop Using Django's squashmigrations: There's a Better Way

Squashing Django migrations often breaks or complicates projects, especially when all environments are under your control. A clean reset by deleting old migrations, generating new ones, and faking migration history is a simpler and more reliable approach.

https://johnnymetz.com/posts/squash-django-migrations/
asyncio: a library with too many sharp corners

An explanation of some major issues with asyncio.

https://sailor.li/asyncio
Netflix ML Infra: Stop Bottlenecks! Scale Python Like Never Before

Netflix’s Metaflow team built a scalable ML infrastructure using Python to support use cases like recommendations and content modeling while boosting developer productivity. Their design focuses on reducing cognitive load by improving data handling, dependency management, and environment isolation so engineers can focus on ML instead of infrastructure.

https://www.youtube.com/watch?v=QaP5xl7EA2Y
Creating a Simple XML Editor in Your Terminal with Python and Textual

The article explains how to build a simple terminal-based XML editor in Python using the Textual and lxml libraries, featuring a recent files list, file browser, XML tree viewer, node editing, and preview screens. The tutorial provides modular design, handling for adding nodes and editing XML content interactively, with each UI component styled via CSS for usability and clarity.

https://www.blog.pythonlibrary.org/2025/07/30/tui-xml-editor/
Nullable but not null

The article highlights that leaving database fields as nullable after they've been fully filled creates an inaccurate schema, leading to confusion and unnecessary complexity. It recommends scanning for fields that are nullable in the schema but never actually contain null values, and then making them non-nullable to ensure your database enforces the correct constraints and improves data ...

https://efe.me/posts/nullable-but-not-null/
multiplex

Multiplex is a command-line multiplexer along with a simple Python API to run multiple processes in parallel and stop them all at once, or based on some condition.

https://github.com/sebastien/multiplex