PythonHub
2.33K subscribers
2.35K photos
49K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
A Comprehensive Guide to Python Project Management and Packaging: Concepts Illustrated with uv – Part I

The goal of this guide is to provide a comprehensive guide to Python project management and packaging. We’ll explore concepts in the standard, like the different tables in pyproject.toml by revisiting the PEPs that led to what we have today. We’ll explain what was used before, why it needed to change, and how the changes provided by the PEPs solved the issues. This walkthrough of the his...

https://reinforcedknowledge.com/a-comprehensive-guide-to-python-project-management-and-packaging-concepts-illustrated-with-uv-part-i/
Tiny GraphRAG (Part 1)

A tiny 1000 line implementation of GraphRAG in Python.

https://www.stephendiehl.com/posts/graphrag1/
Don't return named tuples in new APIs

Named tuples should generally be avoided in new APIs, as they add unnecessary complexity by supporting both index-based and attribute-based data access, leading to potential misuse and added maintenance. Instead, using options like data classes or typed dictionaries can offer clearer, more structured code with similar benefits.

https://snarky.ca/dont-use-named-tuples-in-new-apis/