Implementing gRPC In Python | Ashish M J
Enhancing LLMs with Vector Database with real-world examples, Understanding Context Manager and its Syntactic Sugar with some more interesting articles, packages and projects
News
NumPy 2.0.0rc1 released
NumPy 2.0.0 is the first major release since 2006. It contains a large number of exciting new features as well as changes to both the Python and C APIs. This is a major release so it includes breaking changes so be careful. Check out the numpy-2-migration-guide.
SciPy 1.13.0
This release aims to support NumPy 2.0.0, and is backwards compatible with NumPy 1.22.4.
Articles
Implementing gRPC In Python
gRPC is sleek and fast compared to REST when it comes to the API world. In this article, Ashish M J explained a bit about gRPC and showed an example of implementing it in your Python application.
# Ashish M J
Enhancing LLMs with Vector Database with real-world examples
We can say Vector Databases keep LLMs up to date. Through the RAG technique mostly we do. In this article, Grig Duta explained about vector databases, how people used them before the LLM era, how to improve their performance, how to create embeddings, etc. A long one but a good one.
# Grig Duta
Understanding Context Manager and its Syntastic Sugar
If you are using the “with” keyword it means you used the context manager. Many of us don’t have an idea about it but it is the one that saves us a lot of time from memory leaks, not being able to access resources and other similar kinds of problems. In this article, Björn Ricks explained about it and gave amazing examples to understand and create your own.
# Björn Ricks
Getting Started with asyncio
This article is a good place to get an idea about asyncio which is an amazing Python library that allows users to write code using the async/await syntax to perform multiple tasks concurrently.
# Ashok Tankala
Python's __all__: Packages, Modules, and Wildcard Imports
Wildcard imports are not a good practice in production but still, some people do but you want to control what you want to let other people get in wildcard import you can do this using __all__ and there are other benefits too. Check this article by Leodanis Pozo Ramos to know more about it.
# Leodanis Pozo Ramos
Data validation is not the strong forte of Python because of its dynamic type systemness. Of Course, that’s why it's most user-friendly. To tackle this problem libraries like Pydantic are there. In this video, Arjan explained about Pydantic with amazing examples.
# Arjan
Server-Sent Events with Python FastAPI
Sometimes we need to show the real-time location of the user or real-time data at the front end then HTTP polling will become overkill and Server Sent Events best option. In this article, Nanda Gopal Pattanayak explained how to implement it with a simple example using FastAPI.
# Nanda Gopal Pattanayak
Streamlit Magic Cheat Sheet
Streamlit gained popularity because of its simplicity and versatility. If you want to use it and you are looking for a cheat sheet then check this amazing site built by Tushar Aggarwal.
# Tushar Aggarwal
Interesting Packages and Projects to explore
networkx - Package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks.
PySnooper - Poor man's debugger.
wxpython - The cross-platform GUI toolkit for the Python language.
Upcoming Python Events
Tickets for EuroPython 2024 are now on sale
PyCascades 2024
Apr 5 – 8, 2024
Django Girls Cuenca 2024
Apr 6, 2024
Leipzig Python User Group
Apr 9, 2024
Python Atlanta Meetup
Apr 11, 2024