Python Hub

@pythonhub
6.1K Followers
1 Following
9.6K Posts
Interesting articles and projects for Python developers
webhttps://pythonhub.dev
twitterhttps://twitter.com/PythonHub
telegramhttps://telegram.me/PythonHub

The Hidden Mechanism Behind Clean Python APIs (Descriptor Deep Dive)

Descriptors define how Python resolves attribute access, explaining why values sometimes come from the instance, class, or elsewhere in non-obvious ways. Understanding descriptor rules enables cleaner, more reusable designs by giving you precise control over attribute behavior.

https://www.youtube.com/watch?v=7SUzTOkUVLY

The Hidden Mechanism Behind Clean Python APIs (Descriptor Deep Dive)

YouTube

LiteLLM Python package compromised by supply-chain attack

https://github.com/BerriAI/litellm/issues/24512

[Security]: CRITICAL: Malicious litellm_init.pth in litellm 1.82.8 — credential stealer · Issue #24512 · BerriAI/litellm

[LITELLM TEAM] - For updates from the team, please see: #24518 [Security]: CRITICAL: Malicious litellm_init.pth in litellm 1.82.8 PyPI package — credential stealer Summary The litellm==1.82.8 wheel...

GitHub

Visitran

Build data transformation pipelines using Python with a visual IDE and AI assistant.

https://github.com/Zipstack/visitran

GitHub - Zipstack/visitran: Modern, AI-native and agentic Pythonic data transformation platform.

Modern, AI-native and agentic Pythonic data transformation platform. - Zipstack/visitran

GitHub
RSA and Python

Understanding, implementing and cracking RSA

Reinventing Python's AsyncIO

The post explores a redesign of Python’s async runtime, arguing that the current async/await and event-loop model adds unnecessary complexity, and proposing a simpler runtime where concurrency is handled automatically without explicit async syntax.The author experiments with a new runtime approach that can run async workloads 2–3.5× faster than traditional asyncio, suggesting Python’s co...

https://blog.baro.dev/p/reinventing-pythons-asyncio

Reinventing Python's AsyncIO | Fluxus by gi0baro

My journey (so far) in rethinking Python's async code execution

Fluxus by gi0baro

How we optimized Dash's relevance judge with DSPy

Dropbox used DSPy to turn prompt engineering for our relevance judge into a measurable, automated optimization loop, improving task performance, cost, and how reliably it works in production.

https://dropbox.tech/machine-learning/optimizing-dropbox-dash-relevance-judge-with-dspy

How we optimized Dash's relevance judge with DSPy

We used DSPy to turn prompt engineering for our relevance judge into a measurable, automated optimization loop, improving task performance, cost, and how reliably it works in production.

Using Claude to fix PyPy3.11 test failures securely

This post describes using Claude to assist in fixing PyPy 3.11 test failures, with all generated changes run in a sandbox and verified locally. It highlights a practical workflow where AI suggests patches but humans validate results, enabling faster debugging without sacrificing safety.

https://pypy.org/posts/2026/03/using-claude-to-fix-pypy311-test-failures-securely.html

Using Claude to fix PyPy3.11 test failures securely

I got access to Claude Max for 6 months, as a promotional move Anthropic made to Open Source Software contributors. My main OSS impact is as a maintainer for NumPy, but I decided to see what claude-co

PyPy

Python Type Checker Comparison: Typing Spec Conformance

When you write typed Python, you expect your type checker to follow the rules of the language. But how closely do today's type checkers actually follow the Python typing specification? In this post, we look at what typing spec conformance means, how different type checkers compare, and what the conformance numbers don't tell you.

https://pyrefly.org/blog/typing-conformance-comparison/

Python Type Checker Comparison: Typing Spec Conformance | Pyrefly

Learn what it means to conform to the Python typing spec, why it matters, and the conformance status of each type checker including Pyrefly, Ty, Pyright and Mypy.