News & links about Python programming. https://pythonhub.dev/ Administrator: @rukeba
Try This if You Don’t Like Python’s Exception Handling
Struggling with Python's unpredictable errors and None checks? This video shares a unique approach to making your code cleaner and more reliable using the returns package—no complicated try-except nests required.
https://www.youtube.com/watch?v=qkxf583t4Vc
The hand-picked selection of the best Python libraries and tools of 2024 – 10th edition!
https://www.reddit.com/r/Python/comments/1hbs4t8/the_handpicked_selection_of_the_best_python/
Django: launch pdb when a given SQL query runs
This article discusses a technique for debugging Django applications by using database instrumentation to identify and break on specific SQL queries. This allows you to trace the execution flow back to the code that triggered the query, even when it's not immediately obvious.
https://adamj.eu/tech/2024/12/05/django-sql-breakpoint/
Text Chunking for RAG Systems with Chonkie
Speaks about the need for efficient text chunking and how to do that practically
https://medium.com/generative-ai/text-chunking-for-rag-systems-with-chonkie-d609d0eef55c
Jules
Jules by Google is an experimental AI-powered code agent that can handle Python and JavaScript bug fixes and other coding tasks. It integrates with GitHub, creates detailed plans, and generates code, saving developers time and boosting productivity.
https://labs.google.com/jules/home
Helium: Lighter Web Automation with Python
https://github.com/mherrmann/helium
Parlant
A structured approach to building and guiding customer-facing AI agents.
https://github.com/emcie-co/parlant
Django and Postgres for the Busy Rails Developer
The article compares Django and Ruby on Rails frameworks from a Rails developer's perspective, focusing on database interactions with PostgreSQL. It highlights similarities and differences in language runtime management, library management, migrations, models, and command-line tools, providing insights for developers familiar with Rails who are exploring Django.
https://andyatkinson.com/django-python-postgres-busy-rails-developer
Python .gitignore
https://www.reddit.com/r/Python/comments/1h8rc4g/python_gitignore/
Vanir
Vanir is a source code-based static analysis tool that automatically identifies the list of missing security patches in the target system. By default, Vanir pulls up-to-date CVEs from Open Source Vulnerabilities (OSV) together with their corresponding signatures so that users can transparently scan missing patches for an up-to-date list of CVEs.
https://github.com/google/vanir
MarkItDown: Python tool for converting files and office documents to Markdown
https://github.com/microsoft/markitdown
Squashing Django Migrations the Easy Way
The article outlines a step-by-step process for safely squashing Django migrations in large projects, using tools like django-model-info to visualize migration dependencies and identify safe linear paths for squashing. It emphasizes the importance of maintaining the migration graph's integrity, updating dependencies, and carefully deploying changes to reduce migration count without break...
https://jacklinke.com/squashing-django-migrations-the-easy-way
Progresspal
A decentralized python iterable, function and log tracker.
https://github.com/levi2234/Progresspal
MegaParse
File Parser optimised for LLM Ingestion with no loss. Parse PDFs, Docx, PPTx in a format that is ideal for LLMs.
https://github.com/QuivrHQ/MegaParse
Helping Securing the Python with Mike Fiedler
The episode discusses the security challenges faced by PyPI, including account takeovers and typo-squatting, highlighting the importance of measures like 2FA and collaboration with security researchers. It also explores the debate between maintaining legacy systems and greenfield development, emphasizing the complexities of managing critical infrastructure and the often underestimated ro...
https://share.transistor.fm/s/db1d4d9f
Imposter Attack – Among Us-themed infrared game made with ESP32 and MicroPython
https://blog.langworth.com/imposter-attack
JupyterLab 4.3 and Notebook 7.3 are available!
https://blog.jupyter.org/jupyterlab-4-3-and-notebook-7-3-are-available-eaaa7227d61b
flow_matching
A PyTorch library for implementing flow matching algorithms, featuring continuous and discrete flow matching implementations. It includes practical examples for both text and image modalities.
https://github.com/facebookresearch/flow_matching
Building a Tiny CDN With pyinfra and Chimera Linux
The author set up a DIY content delivery network for his link blog using multiple servers worldwide, reducing average response time from 807ms to 189ms. He utilized pyinfra for automation, Chimera Linux as the host OS, and implemented GeoDNS for traffic routing, demonstrating significant performance improvements without relying on major CDN providers.
https://www.wezm.net/v2/posts/2024/tiny-cdn/
A Deep Dive into Celery Task Resilience, Beyond Basic Retries
How to make your Celery tasks more resilient with best practices to prevent workflow interruptions and handle various failure scenarios.
https://blog.gitguardian.com/celery-tasks-retries-errors/
Minima
Chat with RAG on local files.
https://github.com/dmayboroda/minima
Writing down (and searching through) every UUID
The post describes a creative project to generate and catalog every possible Version 4 UUID, creating a comprehensive searchable database of unique identifiers. The author developed a method to systematically generate all 2^122 possible UUIDs, enabling full-text search and exploration of these globally unique identifiers.
https://eieio.games/blog/writing-down-every-uuid/
Summarized how the CIA writes Python
https://www.reddit.com/r/Python/comments/1hez6qa/summarized_how_the_cia_writes_python/
Lazy self-installing Python scripts with uv
The article introduces UV, a Python tool that streamlines script execution by managing dependencies automatically. It enables self-installing scripts with metadata for dependencies, eliminating the need for manual virtual environment setups or packaging. UV also offers tools to replace pipx and pyenv for Python installations and CLI tools.
https://treyhunner.com/2024/12/lazy-self-installing-python-scripts-with-uv/
Python Hub Weekly Digest for 2024-12-15
https://pythonhub.dev/digest/2024-12-15/
Astral (uv/ruff) will be taking stewardship of python-build-standalone
https://www.reddit.com/r/Python/comments/1h8qoxl/astral_uvruff_will_be_taking_stewardship_of/
RAGLite
RAGLite is a Python toolkit for Retrieval-Augmented Generation (RAG) with PostgreSQL or SQLite.
https://github.com/superlinear-ai/raglite
agenta
The open-source LLMOps platform: prompt playground, prompt management, LLM evaluation, and LLM Observability all in one place.
https://github.com/Agenta-AI/agenta