Asyncio in Python - Full Tutorial | Tim Ruscica
Top 5 Web Scraping Methods: Including Using LLMs, The Design Philosophy of Great Tables, Handling Database Migrations with Alembic with some more interesting articles, packages and projects
News
Ruff v0.4.0 is available now!
You might have heard how fast Ruff is. It’s got a new update. This new version features a new hand-written parser that is much faster and offers better error messages.
Llama 3 released
I think it doesn’t need any introduction. It was released last week and already a lot of people going gaga about it.
PyTorch 2.3 is available now!
PyTorch 2.3 offers support for user-defined Triton kernels in torch.compile. Tensor Parallelism improves the experience for training Large Language Models using native PyTorch functions, which has been validated on training runs for 100B parameter models.
PEP 745 – Python 3.14 Release Schedule
Soon Python 3.14 development work is going to start.
Py2wasm: A new Python to Wasm compiler
Alternative to pyiodide. Interesting times, let’s see how it is going to progress. If you are interested in Wasm space check it out.
Articles
Top 5 Web Scraping Methods: Including Using LLMs
There are several ways to do web scraping including using LLMs. In this article, Nhi Yen covered 5 different methods including LLM one. I am not sure whether LLM is the right method to choose but having an idea is a good thing so that we can make the right decision when required.
# Nhi Yen
The Design Philosophy of Great Tables
Tables are one of the great ways to present data. There are a good number of Python packages to do that one of them is great-tables. In this article, Rich Iannone and Michael Chow covered it in a very interesting way. They started from the early history of tables to the present time and how to create tables using great-tables.
# Rich Iannone and Michael Chow
asyncio is an amazing option if you are planning to manage many waiting tasks like IO operations. In this video, Tim Ruscica covered 5 key concepts of asyncio which is worth watching. In this video, some of them you might already know like tasks and event loop but some of them you might not know which are future, lock and semaphore.
# Tim Ruscica
Handling Database Migrations with Alembic
To implement database migrations into your codebase Alembic is a great tool. Thinking of using it then you should check this article by Paul Esch-Laurent.
# Paul Esch-Laurent
Install and Execute Python Applications Using pipx
If you want to install Python packages like command-line applications then pipx is there to help you. It is like macOS's brew, JavaScript's npx, and Linux's apt. If you want to know about it in detail then check this article by Bartosz Zaczyński.
# Bartosz Zaczyński
Pandas: From Messy To Beautiful
When you deal with mutable objects things get messy because of the side effects it holds at the time of modification. In this article, Anna Zawadzka covered it with the pandas and explained do’s and don'ts also.
# Anna Zawadzka
Awesome Python Library: Tenacity
When our code depends on third-party APIs or some unreliable stuff it becomes pretty hard. We need to write retry code, etc. For these kinds of things we can deal with some amazing Python libraries, tenacity is one of them. Shantnu Tiwari covered it with an example in this article.
# Shantnu Tiwari
Interesting Packages and Projects to explore
PyAutoGUI - A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.
Flet - It enables developers to easily build real-time web, mobile and desktop apps in Python. No frontend experience is required.
Coverage.py - The code coverage tool for Python
sentry-python - The official Python SDK for Sentry.io
cowsay - It is a library that injects humour into the command line by rendering text messages as speech bubbles spoken by an ASCII art cow.
About Upcoming Python Events
PyConZA 2024 - Call for Submissions
The conference is now accepting talk proposals for both remote and in-person talks. Find out more about the format and the process here: https://za.pycon.org/talks/how-to-submit-a-talk/
Open Source with Python | Python User Group Ho
April 27, 2024
Launching Python Niger
Apr 28, 2024
Canberra Python meetup
May 2, 2024