Python Weekly (Issue 584 January 19 2023)

Python Weekly - Issue 584

Python Weekly

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

From Our Sponsor 

In this article, Snyk walks you through setup, writing, and testing your first doctest — giving you all the information you need to get started and save time.

Articles, Tutorials and Talks

We build a Generatively Pretrained Transformer (GPT), following the paper "Attention is All You Need" and OpenAI's GPT-2 / GPT-3. We talk about connections to ChatGPT, which has taken the world by storm. We watch GitHub Copilot, itself a GPT, help us write a GPT (meta :D!) . 

A journey to the world of Python packaging, a visit to the competition, a hopeful look at the future, and highlights from a disappointing discussion.

This post explores how interpreters are often implemented, what a "virtual machine" means in this context, and how to make them faster.

F-strings allow a compact representation for the common task of interpolating program data into strings, often in order to output them in some fashion. Some restrictions were placed on f-strings to simplify the implementation of them, but those restrictions are not really needed anymore and, in fact, are complicating the CPython parser. That has led to a Python Enhancement Proposal (PEP) to formalize the syntax of f-strings for the benefit of Python users while simplifying the maintenance of the interpreter itself.

Three different options for how to effectively test Django code accessing the database.

Lately I've been iterating on a reusable set of open-source continuous integration (CI) tools for my Python projects. Here's an overview, along with a sample GitHub Actions workflow file that runs these checks.

Ever since I got involved with open-source Python projects, Tox has been vital for testing packages across Python versions (and other factors). However, lately, I’ve been increasingly using Nox for my projects instead. Since I’ve been asked why repeatedly, I’ll sum up my thoughts.

Python has some amazing built-in functions and modules for working with iterators. This video is a deep dive into iterators and itertools in Python and how to use iterators for your own projects!

Continuous profiling is a great tool for optimizing the performance of applications. It allows us to continuously monitor and analyze application's resource usage, identify bottlenecks, and use resources more efficiently. In this article, we will take a look at how to set up and use Grafana Phlare, a powerful new open-source tool by Grafana Labs, to perform continuous profiling of Python applications running on Kubernetes.

Interesting Projects, Tools and Libraries

Create UI. For the web. With Python. The nice way.

AI code-writing assistant that understands data content.

Trace your python process line by line with low overhead!

A python package for balancing biased data samples.

A simple, visually pleasing weather report in your terminal.

Pricing & Packaging Infrastructure For Any Business Model.

Sleuth is an open-core enterprise search tool that allows organizations to search text from various workspace apps.

An index created by GPT to organize external information and answer queries!

New Releases

Upcoming Events and Webinars

There will be following talks

  • Using Coresets to Develop and Maintain Better Machine Learning Models

  • Lateral movement detection with LATMA (LATeral Movement Analyzer)

There will be following talks

  • Organizing order fulfillment using mathematical optimization

  • Driver-based demand forecasting: beyond existing frameworks

  • Is there a next step in warehouse logistics optimization?

There will be a talk, MLOps for the rest of us: A poor man's guide to putting models in production.

There will be a talk, A kernel-free boundary integral method (KFBIM) for solving elliptic PDEs.

This is going to be slightly different from a usual meetup as we want to use the first meetup to listen to the Leeds Python/Data community to find out what you are interested in hearing about and additionally to see if there are any kind people that would like to volunteer some of their time to help us as an organiser.

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.