Python Weekly (Issue 639 February 22 2024)

Python Weekly - Issue 639

Python Weekly

Welcome to issue 639 of Python Weekly. Let's get straight to the links this week.

From Our Sponsor 

Take control of your software supply chain with Docker Scout! Enhance security, ensure compliance, and boost productivity. Seamlessly integrate with your developer tooling ecosystem for more reliable and secure development.

Articles, Tutorials and Talks

The Tokenizer, essential for Large Language Models (LLMs), translates between strings and tokens, operating as a distinct stage with separate training sets and algorithms. This lecture builds the GPT series Tokenizer from scratch, uncovering peculiar behaviors in LLMs linked to tokenization. We explore these issues, attributing them to tokenization, and consider the ideal scenario of eliminating this stage altogether."

Learn 5 simple tips to help keep your Python credentials safe and fix problems quickly if they occur.

Learn how to build a modern language model with all the bells and whistles completely from scratch: from vanilla Python to functional coding assistant

The article discusses the author's development of a tool added to Cirron that enables the tracing of system calls made by Python code. It provides an example of tracing the "print" function and explains the tool's implementation using the strace tool for effective analysis. The article also outlines the initial intention to use the ptrace syscall for implementation and the subsequent utilization of the strace tool for handling complexity.

A post on creating a custom IPython Jupyter Magic command.

The article discusses the utilization of AWS Chalice to incorporate a Django worker, enabling the use of a lambda function as a serverless background worker for any application. This approach allows the lambda function to run in the background without blocking the main thread of the app, and it can call an endpoint on the Django app when completed, offering the advantage of using any Python library in the lambda function without requiring lambda layers or other AWS-specific configurations.

Dockerizing your Django application can be intimidating, but the rewards outweigh the risks. In this guide, Charlie Macnamara walks you through the setup process so you can get the most out of your applications.

In this talk we’re going to start from nothing and build out our own tools for making art in Python, no AI needed! We’ll show how Python’s expressiveness allows us to describe graphics elegantly and use that to make some unique art programmatically.

Create a serverless API using FastAPI, deployed on AWS App Runner and powered by Neon Postgres.

Interesting Projects, Tools and Libraries

An extremely fast Python package installer and resolver, written in Rust. Here is a

that goes in to details of uv.

An self-improving embodied conversational agent seamlessly integrated into the operating system to automate our daily tasks.

A personal wearable AI that runs locally.

Serverless for data practitioners. The fastest way to run your code in the cloud. Effortlessly run scripts, functions, and Jupyter notebooks in virtual machines.

Detect file content types with deep learning.

An AI agent powered by LLMs that streamlines the entire process of data analysis.

Minimal, clean, code for the Byte Pair Encoding (BPE) algorithm commonly used in LLM tokenization.

Build reactive web UIs in Python.

A UI-Focused Agent for Windows OS Interaction.

New Releases

Upcoming Events and Webinars

There will be a talk, Getting Started with PyO3.

There will be a workshop, Fine-tuning text-to-image diffusion models for personalization and more.

There will be following talks

  • Text Processing on Data for interacting with LLMs

  • Causal Inference: Creating counterfactuals and their applications in Paid Marketing

There will be following talks

  • Mastering Python Projects with Poetry

  • LLMs in Production aka LLMOps

There will be following talks

  • Unlocking Efficiency - The Power of Vectorization

  • Jupyter(Hub/Lab) - Journey from On-prem to AWS

Our Other Newsletters

 - A free weekly newsletter for programmers.

- A free weekly newsletter for entrepreneurs featuring best curated content, must read articles, how to guides, tips and tricks, resources, events and more.