Python's pathlib module, Speed Up Your Python Program With Concurrency and more
PyCon Australia 2024 Videos, PyData NYC 2024 Videos, A Deep Dive into Celery Task Resilience, Beyond Basic Retries with some more interesting news, articles, packages and projects
News
NumPy 2.2.0 Released
PyCon Australia 2024 Videos Released
PyData NYC 2024 Videos Released
Articles
Python's pathlib module
Need to work with file paths? Consider using Python’s built-in pathlib
module. In this article, Trey Hunner explained how to perform tasks like getting the parent directory, joining paths and more, with clear examples. He even shared a helpful cheat sheet!
# Trey Hunner
Speed Up Your Python Program With Concurrency
Python offers three solutions for concurrency: Threads, Tasks and Processes. Understanding their differences helps you choose the right one for your needs. In this article, Jim Anderson explained these concepts with clear examples. This article will give you a solid understanding of when to use each.
# Jim Anderson
Better, Faster Python Projects: A Deep Dive into uv
If you’re a Python developer, you’ve probably heard about uv
. This powerful tool can replace pip, pip-tools, pipx, poetry, pyenv, twine, virtualenv and more. In this article, Cory Zue explained how uv
can handle tasks typically done by these tools and how you can adapt it to your development workflow.
# Cory Zue
A Deep Dive into Celery Task Resilience, Beyond Basic Retries
Celery is the most popular task queue in the Python ecosystem, but using it without proper planning can cause issues. In this article, Mathias Millet shared strategies for building resilient Celery tasks, such as making tasks idempotent, handling different types of failures with specific retry strategies, etc.
# Mathias Millet
Advanced Pandas Features: Enhance Your Data Processing Skills
Python offers excellent data analysis packages like Pandas and Polars. Pandas is a popular choice as of now but Polars is giving a tough fight. If you want to explore some advanced Pandas features, check out this article by Gen. David L. He covered powerful functions like explode
, implode
, stack
, crosstab
and more for data manipulation and transformation.
# Gen. David L
Interesting Packages and Projects to explore
Prophet - Tool for producing high-quality forecasts for time series data that has multiple seasonality with linear or non-linear growth
psutil - Cross-platform lib for process and system monitoring in Python
crawlee - A web scraping and browser automation library for Python to build reliable crawlers. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with BeautifulSoup, Playwright, and raw HTTP. Both headful and headless mode. With proxy rotation.
wat - Deep inspection of Python objects
Pathway - Python ETL framework for stream processing, real-time analytics, LLM pipelines, and RAG.
About Upcoming Python Events
BangPypers - Bangalore Python Users Group
December 21, 2024
HydPy December Meetup
December 21, 2024