Python Weekly (Issue 649 May 9 2024)

Python Weekly - Issue 649

Python Weekly

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

From Our Sponsor 

Articles, Tutorials and Talks

Bytewax is a curious stream processing tool that blends a Python surface with a Rust core to produce something that’s in a similar vein to Kafka Streams or Apache Flink, but with a fundamentally different implementation. This week we’re going to take a look at what it does, how it works in theory, and how the marriage of Python and Rust works in practice.

Learn how asyncio works by recreating it from scratch with Python generators and using the __await__ under method for the async/await keywords.

We're going to speed up some numpy code by 100x using "unsafe Python." Which is not quite the same as unsafe Rust, but it's a bit similar, and I'm not sure what else to call it... you'll see. It's not something you'd use in most Python code, but it's handy on occasion, and I think it shows "the nature of Python” from an interesting angle.

Over the years, I’ve produced several videos about AsyncIO. Today, however, I’m adopting a new approach where I explain the event loop in depth. I’ll delve deeper into asynchronous programming, focusing specifically on how the event loop operates behind the scenes.

A basic question I think a lot of people have about the GenAI revolution is where does the apparent intelligence these models have come from. In this article, I'm going to attempt to explain in simple terms and without using advanced math how generative text models work, to help you think about them as computer algorithms and not as magic.

Data storytelling forest fire statistics from a NASA GIS data set.

Learn how to use Zoom's API with Python in this step-by-step guide! In this tutorial, you'll learn how to create a robust server-to-server OAuth application that automatically transcribes your Zoom recordings, prints them directly to your terminal, and saves them as text files. Perfect for developers, this tutorial will take you from setup to execution, so you'll have a fully functional application by the end of the video.

The article provides a high-level technical overview of fully homomorphic encryption (FHE), a powerful cryptographic technique that allows computations to be performed on encrypted data without decrypting it first. It discusses some of the key FHE libraries and tools under active development.

Develop an intuition behind Attention: why it took over machine learning + LLMs and what it actually does.

Interesting Projects, Tools and Libraries

ChatGPT at home! Basically a better Google Nest Hub or Amazon Alexa home assistant. Built on the Raspberry Pi using the OpenAI API.

Uncomplicated Observability for Python and beyond!

PgQueuer is a Python library leveraging PostgreSQL for efficient job queuing.

A Python web development framework for htmx and tailwindcss, with hot module replacement, URL locators, dependency injection, supported by static typing, built on top of Starlette.

A multi-image visual language model with training, inference and evaluation recipe, deployable from cloud to edge (Jetson Orin and laptops).

Evaluate your LLM's response with Prometheus.

LlamaParse is an API created by LlamaIndex to efficiently parse and represent files for efficient retrieval and context augmentation using LlamaIndex frameworks.

Run and manage FastAPI apps from the command line with FastAPI CLI. 

Bytewax is a Python framework that simplifies event and stream processing.

Launch Harlequin, the SQL IDE for your Terminal, with your Django database configuration.

State-of-the-art Machine Learning for real-world robotics.

A personal email assistant, trained and running on-device.

Language Model Guided Sim-to-Real Transfer.

Stable Text-to-Motion Framework.

New Releases

Upcoming Events and Webinars

There will be following talks

  • Layered Django project structure for large-scale collaboration

  • Crabs in Snakes!

There will be following talks

  • The Nesting Doll Effect: Scope in Python

  • Revenue based scoring in `GridSearchCV`: a case for the new metadata routing in scikit-learn

There will be a talk, The Best Language to Write Python in is Rust.

There will be following talks

  • Deploy your Data Project on the Web using only Python

  • Introducing magic-di: elevating Python with dependency injector

There will be following talks

  • Kickstart Coding at Scale: How Project Template Automation Unlocks Developer Productivity

  • Dask DataFrame is fast now

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.