PythonHub
2.66K subscribers
2.35K photos
50.6K links
Human-curated Python news, projects, articles & tools.

https://pythonhub.dev/
Download Telegram
Build an AI That Turns Your Voice Into Images, Video and Audio (Python)

This video demonstrates how to build a Python AI agent that automates the entire video creation pipeline, including speech-to-text, scriptwriting, image generation, voice synthesis, and video rendering. By using OpenRouter as a unified API, the project shows how to integrate multiple AI models efficiently while tracking individual operation costs.

https://www.youtube.com/watch?v=aypkvuGFq5Y
Bringing uv and ty together

Astral introduces experimental integration between uv and ty, enabling dependency-aware type checking for Python scripts with PEP 723 inline metadata and a new uv check command that automatically prepares project environments and runs ty. The integration also supports workspace-wide type checking and consistent ty versions through uv's lockfile, bringing Python development tools closer t...

https://astral.sh/blog/uv-ty-integration
How to Run Turing-Complete Malware in PyTorch's Backward Pass

Elon Litman demonstrates how a malicious PyTorch loss function can report a value of zero while secretly manipulating model weights through the backward pass. By exploiting differences between floating-point arithmetic and automatic differentiation, he shows how gradient descent can execute arbitrary computations inside a neural network, creating a potential attack vector for AI training...

https://elonlit.com/scrivings/how-to-run-turing-complete-malware-in-pytorchs-backward-pass/
django-lifecycle - hooks for Django models (Signals alternative)

Learn how to usedjango-lifecycleas an alternative to Django signals, with declarative hooks that run when models are created, updated, deleted, or saved. The package also supports conditional hooks that trigger only when specific fields change or transition between particular values.

https://www.youtube.com/watch?v=sNdopNFOEB8
Decoding base64 in Python at 10 gigabytes per second

Daniel Lemire introduces fastpybase64, a Python library built on SIMD-accelerated simdutf that provides a drop-in alternative to Python's standard base64 module. In single-threaded benchmarks decoding Base64 data containing line breaks, it achieves over 13 GB/s throughput, approximately 27 times faster than the standard library and four times faster than pybase64.

https://lemire.me/blog/2026/10/17/decoding-base64-in-python-at-10-gigabytes-per-second/