Python Weekly (Issue 650 May 16 2024)

Python Weekly - Issue 650

Python Weekly

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

From Our Sponsor 

Articles, Tutorials and Talks

This video explains the Unit of Work design pattern, a crucial concept for anyone who regularly interacts with databases. This pattern plays a key role by accumulating all transactions and executing them collectively. But why is this necessary? Find out in this video.

The article explores the concept of homoiconicity in programming languages, where code and data are interchangeable, as exemplified by Lisp. It presents a Python implementation of a subset of the "Lisp in Lisp" code, showcasing how Python can be made homoiconic by treating code as data structures that can be manipulated and executed.

This post is going to take a first pass at creating Agents from scratch, using DSPy. The goal here is education, and to explore how one might build agents from scratch in DSPy.

my favorite build system, jinja-preprocessed-eval-preprocessed YAML.

The post details the author's experience implementing a PNG parser in the Mojo programming language. It covers challenges faced, such as handling unsigned 8-bit integers and converting bytes to strings, while exploring idiomatic ways to write Mojo code for this task.

Learn how to develop distributed applications on Tezos, from setting up wallets to understanding and managing smart contracts effectively. The course covers various tools and techniques essential for Tezos developers and highlights the community-driven innovations that support the platform's growth. 

A step by step modular approach with UNFAO global food insecurity data.

Using Postgres as a task queue for Django is fast to add. There are other big advantages over the traditional approach (e.g., Celery and Redis).

Python’s logging module isn’t the only way to create logs. There are several third-party packages you can use, too. One of the most popular is Loguru. Loguru intends to remove all the boilerplate you get with the Python logging API. You will find that Loguru greatly simplifies creating logs in Python.

The article discusses the key principles and lessons learned while developing marimo, a new Python notebook environment. It emphasizes staying true to the project's core pillars of reproducibility, maintainability, and multi-purpose design, even when faced with feature requests that could compromise those principles.

Interesting Projects, Tools and Libraries

An LLM-powered knowledge curation system that researches a topic and generates a full-length report with citations.

Frame is a markdown language for creating state machines (automata) in Python as well as generating UML documentation.

Open Source framework for voice and multimodal conversational AI.

Vehicular traffic flow simulator in road network, written in pure Python.

This library provides several functions for nicely printing data to the terminal. 

drf-api-action elevates Django Rest Framework testing with the action_api fixture, simplifying REST endpoint testing to a seamless, function-like experience.

TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.

Easy-to-use and high-performance NLP and LLM framework based on MindSpore, compatible with models and datasets of Huggingface.

Providing enterprise-grade LLM-based development framework, tools, and fine-tuned models.

Upcoming Events and Webinars

There will be following talks

  • Become a Data Storyteller with Streamlit

  • Automated publishing of technical documentation (Git-to-Confluence)

  • Blending Perspectives: Crafting clean python code for diverse teams in today's projects

There will be a talk, From ML model debugging to bot detection - The story of Sliceline.

There will be following talks

  • Using OpenCV in AI: Practical Image Processing in Python

  • cluster-experiments, a simulation library to design AB tests

There will be following talks

  • Pandas & Pyspark for timeseries data processing from instrument data.

  • Developing Full Stack Python Web Apps with Reflex

There will be following talks

  • Beyond the Continuum: The Importance of Quantization in Deep Learning

  • A Meat-ing of Minds

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.