Hacker News with Generative AI: Python

Show HN: Moose – OSS framework to build analytical back ends with ClickHouse (fiveonefour.com)
Moose lets you develop analytical backends in pure TypeScript or Python code like this:
Show HN: Advanced-Alchemy – A framework agnostic library for SQLAlchemy (github.com/litestar-org)
A carefully crafted, thoroughly tested, optimized companion library for SQLAlchemy, offering:
Advanced Python Features (edward-li.com)
Python is one of the most widely adopted programming languages in the world. Yet, because of it’s ease and simplicity to just “get something working”, it’s also one of the most underappreciated.
Show HN: Durable Python Workflows (github.com/autokitteh)
Stop Writing `__init__` Methods (glyph.im)
YEARS OF DATACLASSES yet NO REAL-WORLD USE FOUND for overriding special methods just so you can have some attributes.
Python’s new t-strings (davepeck.org)
Template strings, also known as t-strings, have been officially accepted as a feature in Python 3.14, which will ship in late 2025. 🎉
Demystifying decorators: They don't need to be cryptic (thepythoncodingstack.com)
I avoided decorators for so long. First, I pretended they didn't exist. Then, I treated them like a magic spell—I'd use some of the common ones and simply copy how they're used in the documentation. And each time I tried to learn how they work, I'd give up pretty quickly.
Frankenstein's `__init__` (ohadravid.github.io)
Inspired by a recent post about the woes of __init__ methods in Python, I thought I’d share the untold story of the absolute craziest __init__ I’ve come across in a production codebase.
Show HN: Parqv – Interactive TUI Parquet Visualizer (github.com/sanspareilsmyn)
parqv is a Python-based interactive TUI (Text User Interface) tool designed to explore, analyze, and understand Parquet files directly within your terminal. Forget juggling multiple commands; parqv provides a unified, visual experience.
How to Run Python in Production (ashishb.net)
My previous article recommended that one should reconsider using Python in production. However, there’s one category of use case where Python is the dominant option for running production workloads. And that’s data analysis and machine learning.
Sorting 7 elements using only if-else statements in Python (github.com/fdvrxt)
15,000 lines of verified cryptography now in Python (protzenko.fr)
In November 2022, I opened issue 99108 on Python’s GitHub repository, arguing that after a recent CVE in its implementation of SHA3, Python should embrace verified code for all of its hash-related infrastructure.
A New ASN.1 API for Python (trailofbits.com)
We’re changing that: with the help of funding from Alpha-Omega, we’re building an ASN.1 API for PyCA Cryptography that addresses three key shortcomings in the Python ecosystem today:
Haskelling My Python (unnamed.website)
Reimplementing Haskell lazy infinite lists using Python generators
Stop Writing `__init__` Methods (glyph.im)
YEARS OF DATACLASSES yet NO REAL-WORLD USE FOUND for overriding special methods just so you can have some attributes.
Regular Expression Derivatives in Python [pdf] [video] (fosdem.org)
Show HN: I built a deep learning engine from scratch in Python (github.com/whitegra)
It implements deep learning architecture and training logic without relying on NumPy, PyTorch, or any external libraries. Every operation—tensor arithmetic, backpropagation, attention, and optimization—is executed through hand-written, minimal Python logic.
Bauplan – Git-for-data pipelines on object storage (bauplanlabs.com)
Bauplan is a Pythonic data platform that provides functions as a service for large-scale data pipelines and git-for-data over S3 data lakes.
Show HN: I made Python project template so you don't need to spend hours on it (github.com/akopdev)
This cookiecutter-based project template is designed to rapidly generate new Python packages. In just a few seconds, you’ll receive a fully set-up python package following modern development approaches.
Using Python's .__dict__ to Work with Attributes – Real Python (realpython.com)
Python’s .__dict__ is a special attribute in classes and instances that acts as a namespace, mapping attribute names to their corresponding values. You can use .__dict__ to inspect, modify, add, or delete attributes dynamically, which makes it a versatile tool for metaprogramming and debugging.
Interesting Python features that I've come across in my career (edward-li.com)
Python is one of the most widely adopted programming languages in the world. Yet, because of it’s ease and simplicity to just “get something working”, it’s also one of the most misunderstood.
MCP Run Python (github.com/pydantic)
Model Context Protocol server to run Python code in a sandbox.
FastMCP: The fast, Pythonic way to build MCP servers and clients (github.com/jlowin)
🚀 The fast, Pythonic way to build MCP servers and clients.
Tariff: A Python package that imposes tariffs on Python imports (pypi.org)
Make importing great again! A parody package that imposes tariffs on Python imports.
Whenever: Typed and DST-safe datetimes for Python (github.com/ariebovenberg)
Typed and DST-safe datetimes for Python, available in Rust or pure Python.
Maps with Django⁽³⁾: GeoDjango, Pillow and GPS (paulox.net)
PEP 750 – Template Strings (python.org)
This PEP introduces template strings for custom string processing.
Elliptical Python Programming (susam.net)
One thing I love about Python is how it comes with its very own built-in zen.
Doing the Prospero-Challenge in RPython (pypy.org)
Recently I had a lot of fun playing with the Prospero Challenge by Matt Keeter. The challenge is to render a 1024x1024 image of a quote from The Tempest by Shakespeare. The input is a mathematical formula with 7866 operations, which is evaluated once per pixel.
Show HN: Python at the Speed of Rust (fxn.ai)
The snake is catching up to the crab!