Hacker News with Generative AI: Python

PyViz – Overview of the Python visualization landscape (pyviz.org)
The Python visualization landscape can seem daunting at first. These overviews attempt to shine light on common patterns and use cases, comparing or discussing multiple plotting libraries. Note that some of the projects discussed in the overviews are no longer maintained, so be sure to check the list of dormant projects before choosing that library.
Using Uv as an Installer (aider.chat)
It’s hard to reliably package and distribute python command line tools to end users. Users frequently encounter challenges: dependency version conflicts, virtual environment management, needing to install python or a specific version of python, etc.
Show HN: WASM-powered codespaces for Python notebooks on GitHub (marimo.io)
Our online playground lets you create and share marimo notebooks for free, without creating an account.
Show HN: Value likelihoods for OpenAI structured output (arena-ai.github.io)
structured-logprobs is an open-source Python library that enhances OpenAI's structured outputs by providing detailed information about token log probabilities.
Uv's killer feature is making ad-hoc environments easy (valatka.dev)
In my view, neither performance nor trying to be Python-aligned is what sets uv apart. Don’t get me wrong — try switching from uv to Poetry, and you’ll quickly notice how sluggish it (poetry) feels. uv goes extra miles to adhere to PEPs, and IMHO it’s the go-to package manager for Python these days. But these aren’t the features that surprised me most.
Show HN: Pyper – Concurrent Python Made Simple (github.com/pyper-dev)
Pyper is a flexible framework for concurrent and parallel data-processing, based on functional programming patterns. Used for 🔀 ETL Systems, ⚙️ Data Microservices, and 🌐 Data Collection
uv: An extremely fast Python package and project manager, written in Rust. (github.com/astral-sh)
An extremely fast Python package and project manager, written in Rust.
Python is the new Basic (schemescape.com)
As far as programming languages go, BASIC ("Beginners' All-purpose Symbolic Instruction Code") is... not a language I would choose today.
I built an Gemini powered AI that detects and fixes Python errors with reasoning (medium.com)
In the ever-evolving landscape of software development, automated tools that can help diagnose and fix code issues are becoming increasingly valuable. Today, I’m excited to share a project that leverages Google’s Gemini model to automatically detect and fix errors in Python code. This tool not only identifies issues but also provides reasoned explanations for its fixes, making it an excellent learning resource for developers.
Show HN: Python with do..end in place of strict indentation (github.com/navxio)
An experimental Python preprocessor that enables do..end syntax in place of strict indentation
Python Packaging: Why we can't have nice things – Part 2: Stupid Pipx Tricks (zahlman.github.io)
Page moved here.
Why is hash(-1) == hash(-2) in Python? (omairmajid.com)
While browsing Reddit the other day waiting for my code to compile, I ran across this question on r/Python:
Python Concurrency: Threads, Processes, and Asyncio Explained (newvick.com)
I recently needed to learn Python concurrency. I always thought I’d get to that topic someday. That someday arrived.
Show HN: Tinyhnsw – The Littlest Vector Database (github.com/jbarrow)
TinyHNSW is a tiny, simple vector database. It weighs in at a measly few hundred lines of code. It's built on a straightforward (but not fast) implementation of HNSW in Python with minimal dependencies. It has an associated set of tutorials that build up to understanding how HNSW works, and how you can build your own TinyHNSW.
Aegypti: Faster Triangle Finding and More (pypi.org)
A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser.
Show HN: Automatic Python scraper for xenforo, phpbb, invision, smf, vbulletin (github.com/TUVIMEN)
forumscraper aims to be an universal, automatic and extensive scraper for forums.
How to debug Python code in Visual Studio Code (qodo.ai)
Remember when finding Python bugs meant peppering your code with print statements? Well, those days are over. Visual Studio Code packs a punch when it comes to Python debugging. Think breakpoints that trigger only when your conditions match, real-time variable tracking, and the ability to freeze time in your code execution. Whether you’re hunting down race conditions or memory leaks, these tools will make your debugging sessions so much more productive.
Predicting good news using regulatory disclosure patterns, Python, SEC (ycombinator.com)
I was curious if I could use insider trading patterns to predict whether the sentiment of 8-K filings were positive or negative.
Musings on Tracing in PyPy (pypy.org)
Last summer, Shriram Krishnamurthi asked on Twitter:
Musings on Tracing in PyPy (pypy.org)
Last summer, Shriram Krishnamurthi asked on Twitter:
Run Python in the Browser Effortlessly (kai.bi)
Microsoft recently open-sourced MarkItDown, a program that converts Office files to Markdown format. The project quickly climbed to GitHub’s trending list upon release.
Weak references and garbage collectors (bernsteinbear.com)
From 2018 to 2021, I worked on a greenfield Python runtime called Skybison. One of its major differences from CPython was that it used a moving garbage collector (GC). This I understood in theory—I knew that it ran when the heap filled up, knew we needed handles to update pointers in the runtime’s code, had read the Moon paper (PDF)—but the other day, I wanted to implement weak references and couldn’t immediately figure it out.
Pyodide 0.27 Release (pyodide.org)
Pyodide v0.27.0 is out. This release was focused on improving the long-term stability of Pyodide.
Weak references and garbage collectors (bernsteinbear.com)
From 2018 to 2021, I worked on a greenfield Python runtime called Skybison. One of its major differences from CPython was that it used a moving garbage collector (GC). This I understood in theory—I knew that it ran when the heap filled up, knew we needed handles to update pointers in the runtime’s code, had read the Moon paper (PDF)—but the other day, I wanted to implement weak references and couldn’t immediately figure it out.
Hat Trick: AWS introduced same RCE vulnerability three times in four years (giraffesecurity.dev)
Almost three years ago, in April 2022, Giraffe Security discovered a security vulnerability in Amazon’s AWS Neuron SDK, a set of Python libraries for running machine learning workloads on specialized hardware in AWS.
Einsum in Depth (joelburget.com)
Show HN: DeepFace – A lightweight deep face recognition library for Python (github.com/serengil)
DeepFace is a lightweight face recognition and facial attribute analysis (age, gender, emotion and race) framework for python.
PyPI Blog: Project Quarantine (pypi.org)
Earlier this year, I wrote briefly about new functionality added to PyPI, the ability to quarantine projects.
A Year in Review: Flask in 2024 (miguelgrinberg.com)
I'm seeing a stream of "year in review" blog posts about all sorts of topics pop up to coincide with the start of 2025. I'm not sure if this is going to be a new tradition for me, but to follow this trend in this article I'm going to give you my review of the most interesting things that happened in the Flask ecosystem in 2024.
State of the Art Python in 2024 (4zm.org)
Software development is about making choices. But available options change and so do the tradeoffs. Are you up to date with the best practices for creating a Python application in 2024? Let’s take a look at some great default choices.