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

https://pythonhub.dev/
Download Telegram
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/
Introducing TorchNeuron: Native PyTorch backend for AWS Trainium

PyTorch and AWS introduce TorchNeuron, an open-source backend that lets developers run PyTorch models natively on AWS Trainium2 and Trainium3 accelerators with minimal code changes. Now available in public beta, it supports eager execution, torch.compile, distributed training, custom kernels through the Neuron Kernel Interface (NKI), and performance profiling using familiar PyTorch APIs.

https://pytorch.org/blog/introducing-torchneuron-native-pytorch-backend-for-aws-trainium/
Introducing TorchTPU

TorchTPU is an open source collaboration between Google and Meta that introduces a native and principled PyTorch backend for Google TPUs. It enables seamless out-of-the-box model execution and TPU migration while delivering industry-competitive inference and training performance through eager execution optimizations, torch.compile integration, and native hardware acceleration.

https://pytorch.org/blog/introducing-torchtpu/