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

https://pythonhub.dev/
Download Telegram
Bridging between Scala & Python with GraalVM

This talk explores using GraalVM to enable seamless interoperability between Scala 3 and Python 3 code, focusing on generating idiomatic Scala facades for Python libraries. It details strategies for handling dynamic Python concepts, such as type hints, structural typing, and decorators, within the static and nominal type system of Scala.

https://www.youtube.com/watch?v=EnEVtmbr-uM
How to Build a Decision Model Like Jev

Learn how to build AI decision models that return calibrated probabilities for classification, scoring, and routing tasks without generating text, using Hugging Face Transformers and the /v1/systemone API. The guide covers custom option tokens, model fine-tuning, probability calibration, and tree batching to improve accuracy, reduce latency, and lower inference costs.

https://www.fratepietro.com/2026/how-to-build-a-decision-model-like-jev/
🤯1
How to improve technical SEO on a Django website

Learn how to improve technical SEO in Django applications by implementing canonical URLs, XML sitemaps, robots.txt, structured data, and proper redirects. The guide includes practical Django code examples for controlling search engine indexing, preventing duplicate content, optimizing page performance, and monitoring results with Google Search Console.

https://codewithstein.com/improve-technical-seo-django/
Popular Python Features You Probably Shouldn’t Use

Explore seven powerful Python features, including properties, dataclasses, caching, decorators, async, pattern matching, and slots, that can make code harder to understand and maintain when misused. Learn the trade-offs of each feature and when using it improves code clarity, design, and maintainability.

https://www.youtube.com/watch?v=RHCyTWaRZSk
Django: check version support with norwegianblue

Adam Johnson demonstrates how to use norwegianblue, a command-line tool powered by endoflife.date, to check release cycles and support deadlines for Django, Python, PostgreSQL, and other software. The tool displays version compatibility, end-of-life dates, and upcoming support deadlines in a color-coded table, helping developers identify unsupported versions and plan upgrades.

https://adamj.eu/tech/2026/10/16/django-norwegianblue/
Python's binary wheels and supply chain attacks

Artem Golubin highlights a supply chain security risk in Python's packaging ecosystem: binary wheels uploaded to PyPI can contain malicious code that differs from their accompanying source distributions. Since most security scanners focus on source code rather than compiled binaries, attackers could hide malware in prebuilt wheels that pip installs by default.

https://rushter.com/blog/python-binary-wheels/
Write Python, Run native, All in Python.

PCC compiles Python and C source into native programs. This compiler and runtime aims to preserve Python's syntax and behavior without libpython, with self-hosting。

https://github.com/allstoalls/pcc
apache iceberg beneath the surface

A video tutorial on how Apache Iceberg's manifests, snapshots, and catalog turn a folder of Parquet files into a table with ACID transactions, hidden partitioning, time travel, and schema evolution. Tutorial uses the data on NYC taxi trips along with PyIceberg, Polars, and DuckDB.

https://www.youtube.com/watch?v=9Fz5noobWcE
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