News & links about Python programming. https://pythonhub.dev/ Administrator: @rukeba
How to Create Vector Embeddings in Python
https://www.datastax.com/blog/how-to-create-vector-embeddings-in-python
Python Hub Weekly Digest for 2025-04-06
https://pythonhub.dev/digest/2025-04-06/
whatsapp-mcp
This is a Model Context Protocol (MCP) server for WhatsApp.
https://github.com/lharries/whatsapp-mcp
Breaking news: Guido van Rossum back as Python's Benevolent Dictator for Life (BDFL)!
https://www.reddit.com/r/Python/comments/1jowzs2/breaking_news_guido_van_rossum_back_as_pythons/
Getting Started with Streamlit
Build your first Streamlit app and explore some basic features.
https://www.pythonguis.com/tutorials/getting-started-with-streamlit/
Training and Finetuning Reranker Models with Sentence Transformers v4
This post explains how to train and fine-tune reranker models using Sentence Transformers v4, detailing components like datasets, loss functions, and evaluators. It demonstrates that fine tuning models on specific domains outperforms general-purpose models, providing practical examples for improving relevance in information retrieval.
https://huggingface.co/blog/train-reranker
Nvidia adds native Python support to CUDA
https://thenewstack.io/nvidia-finally-adds-native-python-support-to-cuda/
trustcall
Tenacious tool calling built on LangGraph.
https://github.com/hinthornw/trustcall
Emigo
Agentic AI Development in Emacs.
https://github.com/MatthewZMD/emigo
Elliptical Python Programming
https://susam.net/elliptical-python-programming.html
AI Runner
AI Runner is a local-first tool that allows you to run open-source large language models (LLM) and AI image generators (Stable Diffusion) on your own hardware, without the need for a web server or cloud service.
https://github.com/capsize-games/airunner
Deploy Django 5.2 from Scratch. Complete Guide
This video provides a tutorial on deploying a Django project to Railway using modern deployment practices and covers setting up Python environments, Git, and configuring Django for production. It demonstrates how to use Railway's platform services to host and deploy Django applications with proper configurations, using Nixpacks or custom Dockerfiles.
https://www.youtube.com/watch?v=A4Pn2lEdoLQ
Dockerpyze
Python applications to Docker, automatically.
https://github.com/nicoloboschi/dockerpyze
If-if-if or If-elif-elif when each condition is computationally expensive?
https://www.reddit.com/r/learnpython/comments/1jeapm0/ififif_or_ifelifelif_when_each_condition_is/
I Let Python Pick My March Madness Bracket - Bracket Simulation Tutorial
This tutorial guides viewers through creating a Python program that simulates the March Madness tournament, using team seeds to generate realistic probabilities and predict potential upsets. The program utilizes Python's dataclasses and the random module to build a tournament function that determines the champion.
https://www.youtube.com/watch?v=4TFQD0ok5Ao
RoboVerse
Towards a Unified Platform, Dataset and Benchmark for Scalable and Generalizable Robot Learning.
https://github.com/RoboVerseOrg/RoboVerse
An Introduction to Testing in Python Flask
This article introduces testing in Flask, emphasizing its importance for code quality and streamlined development. It covers key testing areas like routes, business logic, database interactions, and provides practical examples using pytest, fixtures, mocking, and a focus on edge cases.
https://blog.appsignal.com/2025/04/02/an-introduction-to-testing-in-python-flask.html
clypi
Your all-in-one for beautiful, lightweight, prod-ready CLIs.
https://github.com/danimelchor/clypi
Is Python Code Sensitive to CPU Caching? (2024)
https://lukasatkinson.de/2024/python-cpu-caching/
I Really HATE Brittle Python Functions
This video explains principles for writing less brittle Python code by avoiding type constraints, using value constraints inside functions, and carefully considering optional values. It also advocates for raising errors instead of returning None when a function expects to find an object by ID but cannot.
https://www.youtube.com/watch?v=g-Cytq7YDCc
Programming a Robotic Hand to Crawl
This video demonstrates using a robotic hand to perform gestures like rock, paper, and scissors, programmed with the help of language models, highlighting the model's ability to understand and execute these gestures even if they aren't explicitly defined in the hand's code. The creator explores how language models can abstract and translate general knowledge into specific robotic actions...
https://www.youtube.com/watch?v=57cPmzwCqd4
Doing the Prospero-Challenge in RPython
https://pypy.org/posts/2025/04/prospero-in-rpython.html
microsoft / RD-Agent
Research and development (R&D) is crucial for the enhancement of industrial productivity, especially in the AI era, where the core aspects of R&D are mainly focused on data and models. We are committed to automating these high-value generic R&D processes through our open source R&D automation tool RD-Agent, which lets AI drive data-driven AI.
https://github.com/microsoft/RD-Agent
agent-file
An open file format for serializing stateful agents with persistent memory and behavior. Share, checkpoint, and version control agents across compatible frameworks.
https://github.com/letta-ai/agent-file
FastMCP
The fast, Pythonic way to build Model Context Protocol servers.
https://github.com/jlowin/fastmcp
PyTorch and Python Free-Threading
This post examines multi-threaded parallel inference on PyTorch models using the new No-GIL, free-threaded version of Python. Using a simple 124M parameter GPT2 model that we train from scratch, we explore the novel new territory unlocked by free-threaded Python: parallel PyTorch model inference, where multiple threads, unimpeded by the Python GIL, attempt to generate text from a transfo...
https://trent.me/articles/pytorch-and-python-free-threading/
nova-act
Amazon Nova Act is a research preview of a new AI model for developers to build agents that take actions in web browsers.
https://github.com/aws/nova-act
How we started our async python migration
Have you ever wanted to try an Async Python migration, but were unsure where to start? Read this post to find out!
https://blog.duolingo.com/async-python-migration/
coredumpy
coredumpy saves your crash site for post-mortem debugging
https://github.com/gaogaotiantian/coredumpy
We hacked Gemini's Python sandbox and leaked its source code (at least some)
https://www.landh.tech/blog/20250327-we-hacked-gemini-source-code/