This week in Python, popular topics included the importance of understanding tokenizers in AI applications, strategies for zero downtime Django deployments, and the release of PyBay 2024 videos. Other highlights featured discussions on careful code duplication removal, PyPI analytics with ClickPy, and the investigation of a Workbench UI latency issue by Netflix engineers. New projects introduced include Avaiga/taipy for turning data and AI algorithms into web applications, and Moonshine for automatic speech recognition on edge devices. Lastly, Reddit threads explored the state of Python in 2024 and advanced Python threading tutorials. Wishing you a great week and happy coding!
Tinylangs: Programming languages in 50 lines of Python
You Should Probably Pay Attention to Tokenizers
This article emphasizes the importance of understanding tokenizers in AI applications, particularly for Retrieval-augmented generation (RAG) systems. The author demonstrates how different tokenizers handle various types of text input, including emojis and misspelled words, and explains how tokenization affects embedding quality and overall performance in natural language processing tasks.
Zero Downtime Django Deployments with Multistep Database Changes
Preventing downtime during deployments is crucial for maintaining service availability and ensuring a positive user experience. Blue-green deployments have emerged as a popular strategy to achieve this goal. However, they introduce challenges, especially when dealing with database changes. This article delves into what blue-green deployments are, why database changes can be tricky in thi...
PyBay 2024 Videos
The talks from PyBay 2024 are now available online.
Be Careful With Removing Code Duplication
This video refactors some tricky, hard-to-detect code duplication, provides an example of when it’s best to leave duplicated code as is, and shares a few tips on how to avoid duplication altogether.
ClickPy
PyPI analytics powered by ClickHouse.
Venvstacks: Virtual Environment Stacks for Python
Avaiga / taipy
Turns Data and AI algorithms into production-ready web applications in no time.
Algorithmic Music Generation with Python
Astral: Next-Gen Python Tooling
Investigation of a Workbench UI Latency Issue
Netflix engineers investigated a JupyterLab UI latency issue in their Workbench product, tracing it to an unexpected interaction between a resource usage extension and memory allocation. The root cause was identified as the extension's performance degrading linearly with increased virtual memory usage, despite available physical memory.
From Python to CPU instructions: Part 1
In the first part of a two-part series, we’ll compare the same program written in C and Python to reveal what Python hides from us.
Adding keyboard shortcuts to the Python REPL
The article discusses how to enhance the Python REPL (Read-Eval-Print Loop) by adding custom keyboard shortcuts to improve efficiency and user experience. It provides step-by-step instructions for implementing these shortcuts, enabling users to navigate and execute commands more effectively.
Python Hub Weekly Digest for 2024-11-03
DS4SD / docling
Get your docs ready for gen AI
llm-jq
Write and execute jq programs with the help of LLM.
Mochi 1
The best OSS video generation models.
Moonshine
Fast and accurate automatic speech recognition (ASR) for edge devices.
State of the Art Python in 2024
Python Threading Tutorial: Basic to Advanced (Multithreading, Pool Executors, Daemon, Lock, Events)
Project by Ruslan Keba. Since 2012. Powered by Python. Made in 🇺🇦Ukraine.