Python Weekly (Issue 612 August 10 2023)

Python Weekly - Issue 612

Python Weekly

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

From Our Sponsor 

A weekly newsletter featuring the best hand curated news, articles, tutorials, talks, tools and libraries etc for programmers.

Articles, Tutorials and Talks

In this talk, Simon Willison summarizes everything he has learned about LLMs over the past year: how they are built, what they can do, what they can't do and how we can best tame them and use them to solve interesting problems.

When you run a simple "Hello World" Python program on Linux, a lot more happens behind the scenes than you might think. This post explores the different steps that take place when you run a "Hello World" program, from parsing the command line to executing the code.

This article should serve as a list of reasons to not handle Python versions as simple strings due to their complexity. Instead use the official packaging.version.Version class to parse, compare, and reason about Python versions.

This post presents a simple Python module that after imported, changes the values of two integers. The purpose is (a) show that modules can do harmful and unexpected things, (b) show an example of how to write a simple module in C, and (c) introduce a few things in CPython source code.

Learn how to build and evaluate medical AI models with TensorFlow. This is a great, real world project for improving your machine learning skills. You will use TensorFlow to evaluate chest x-rays.

This  post explores unconventional methods of representing Git hashes, discussing creative alternatives to the standard hexadecimal format for representing commit identifiers. 

A story about the Python GIL, threading, and fixing code that already works.

Following our previous post on column-level encryption, this post explores several implementation approaches and discusses their advantages and disadvantages.

Objects with `__enter__` and `__exit__` methods can be used as context managers in Python. This article discusses most of what you'll want to know when creating your own context managers.

A tutorial on how to implement a paper and debug your model.

Learn about GPT new function calling feature which allows chatbots to interact with anything, opening up new possibilities for AI-powered applications.

A short walkthrough of how to profile an HTTP request through an asynchronous FastAPI API handler.

Traditionally most chatbots were a tree of if-else blocks. Some had a layer of sophistication where users’ intent was captured, to decide which function should be triggered. However, the tech was never good enough to resolve an actual query — until now. After GPT-3, we've seen how large language models are able to formulate near-human answers. In this tutorial, we'll index documents, create a GPT-powered bot on top of it, and finally expose it as an API.

The post offers programmers a non-mathematical introduction to Kalman filters, explaining their practical applications and benefits in various fields without delving into complex mathematical details. It serves as a beginner-friendly guide for understanding the fundamentals and potential uses of Kalman filters in a programming context.

Interesting Projects, Tools and Libraries

Multi agent system for AI-driven software development. Convert natural language requirements into working software. Supports any development language and extends the existing base code.

An open-source Python library for poker simulations and hand evaluations.

A program synthesis agent that autonomously fixes its output by running tests!

Developer-friendly, serverless vector database for AI applications.

A diffusion model to colorize black and white images.

AI evaluation tool for streamlined and comprehensive comparison of prompts, models, and parameters across various modalities.

Functionary is a language model that can interpret and execute functions/plugins.

New Releases

This release includes the following announcements:

  • Python extension Dev Container for Contributors

  • Debug configuration for running Python files with arguments

  • Npm package for the Python extension API

  • Error-tolerant Pytest discovery

Upcoming Events and Webinars

There will be a talk, An Introduction to Unicode in Python and a workshop, Python/Ansible.

There will be a talk, Building 3D Interactive Tooling with Python.

There will be following talks

  • Self-healing code generation with LLMs

  • Image Generation & Brand Marketing : Exploring the potential of Stable Diffusion in Marketing Content Creation 

  • From Text to Trends: Leveraging Large Language Models for Time Series Forecasting

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.