Advanced RAG Techniques, Strings and Character Data in Python and more
uv 0.3.0 released, 2024 Python Typing Survey Analysis with some more interesting news, articles, packages and projects
News
NumPy 2.1.0 released
python-oracledb 2.4.0 released
uv 0.3.0 released
In this release, UV got a series of features that extend uv beyond a pip alternative, and into an end-to-end solution for managing Python projects, command-line tools, single-file scripts, and even Python itself. You can learn more here.
Articles
Advanced RAG Techniques: Elevating Your Retrieval-Augmented Generation Systems 🚀
This repository by Nir Diamant offers a wide range of strategies for RAG (currently 17), along with tutorials and visualizations, making it an excellent resource for learning and reference.
# Nir Diamant
Strings and Character Data in Python
In Python, it's uncommon to find an application, program or library that doesn't involve some form of string manipulation. In this tutorial by Leodanis Pozo Ramos, you'll dive deep into string manipulations and their methods. Before reading it, I thought I had a solid grasp of strings in Python, but I quickly realized how much more there was to learn. For instance, did you know about the .center(width) method? It returns a string with the target text centered within a field of a specified width. Many such methods can make working with strings easier and more efficient.
# Leodanis Pozo Ramos
Rye and uv: August is Harvest Season for Python Packaging
Armin Ronacher initially developed Rye, a package management solution and later transferred its stewardship to Astral. Recently, Astral has introduced numerous new features to UV, details of which can be found here. In a recent blog post, Armin Ronacher discussed these developments and mentioned that Rye is now essentially becoming an alias for UV.
# Armin Ronacher
2024 Python Typing Survey Analysis
Aaron Pollack has shared the initial analysis of the "Python Typing Survey 2024," based on two weeks of collected data. The survey aims to gather feedback and gain a deeper understanding of how developers are currently using type hints. If you'd like to participate, you can click on this link.
# Aaron Pollack
How to build a query language in Python
In this article, James provided all the information you need to create your own query language. It's a follow-up to his previous piece, "How to Build a Search Index in Python." If you haven't read that one yet, be sure to check it out—it's also an excellent resource.
# James
Interesting Packages and Projects to explore
ada-url - Python bindings for Ada URL parser which adheres to the WHATWG URL specification.
Vulture - Find dead Python code
FastDepends - FastAPI Dependency Injection system extracted from FastAPI and cleared of all HTTP logic. Async and sync modes are both supported.
About Upcoming Python Events
EuroSciPy 2024
Aug 26 – 30, 2024
PyHEP.dev 2024
Aug 26 – 30, 2024
Build a Data Science Portfolio that Gets You Noticed
Aug 27, 2024
Python New Zealand, Online Group, Presentation and Code-along-at-home
Aug 27, 2024
PyCon PL 2024
Aug 29 – Sep 1, 2024