Python Weekly (Issue 577 November 24 2022)

Python Weekly - Issue 577

Python Weekly

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

News

Articles, Tutorials and Talks

The Facade design pattern is a great choice if you want to connect with a complex system via a simplified interface. In this tutorial, I show you how to apply the pattern to your own code and discuss some of the limitations of the pattern.

How the author tried and failed to add static type checking to Parsy, and settled for type hints as documentation instead.

In this tutorial, you will discover how to identify and fix race conditions with processes in Python.

Rock icon Rivers Cuomo goes deep on coding talk with Python computer language creator and programming icon, Guido Van Rossum. We talk about the history of The Sweater Song, coding vs songwriting, the history of Python and much, much more!

The really exciting applications will be action-driven, where the model acts like an agent choosing actions. And although academics can argue all day about the true definition of AGI, an action-driven LLM is going to look a lot like AGI.

Learn to build the entire project from scratch using Python and the PyGame framework. We start by setting up PyGame, and drawing static images on the screen. Then we animate tiers of procedurally drawn enemies onto each level and get them moving, then check to see if the player has shot them. Once the player clears a full level of enemies, they proceed to the next level. Then we create pause functionality, a main menu and game over conditions.

On November 23rd, 2022, the Datadog Security Labs team identified a utility Python package on PyPI related to FastAPI, fastapi-toolkit, that has likely been compromised by a malicious actor. The attacker inserted a backdoor in the package, adding a FastAPI route allowing a remote attacker to execute arbitrary python code and SQL queries in the context of the web application. 

Django deployment might be painful. This post describes an approach for deploying Django and Celery with docker-compose, so you can reuse it in your app. 

Interesting Projects, Tools and Libraries

An ActivityPub/Fediverse server.

Search your codebase with natural language • CLI • No data leaves your computer.

A tool for building GraphQL — API(s) with Python.

Whitebox is an open source E2E ML monitoring platform with edge capabilities that plays nicely with kubernetes.

Kangas is a tool for exploring, analyzing, and visualizing large-scale multimedia data. It provides a straightforward Python API for logging large tables of data, along with an intuitive visual interface for performing complex queries against your dataset.

Write highly modular, compact, and decoupled data science pipelines.

FlagAI (Fast LArge-scale General AI models) is a fast, easy-to-use and extensible toolkit for large-scale model. 

A recurrent neural network paired with heuristic methods that automatically infer geospatial, temporal and feature columns 

A Python PDF parsing library and tool built on top to browse the internal structure of a PDF file.

Social reading and reviewing, decentralized with ActivityPub.

Upcoming Events and Webinars

There will be following talks

  • Get knowledge of algorithms and Rust for Christmas with this one weird trick?!

  • Finding patterns and anomalies in Slovenian Twitter data

  • Programming and statistical data modelling in highly regulated environments

There will be following talks

  • IoT ML enabled litter box - take your data into your own hands

  • Peer beneath the surface of the Earth in the clouds

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.