Python Weekly (Issue 494 April 8 2021)

Python Weekly - Issue 494

Python Weekly

Welcome to issue 494 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

A chat with Meredydd Luff, CEO of Anvil, about why he believes web programming has become overly complex. If you want to build a web app in Python and not worry about databases, server side code, or web design, it's time to give Anvil a try.

In the first part of this post, we'll design a simple fully-functional hash table, discuss its capabilities and limitations and outline a general approach to design a hash table that works well in practice. In the second part, we'll focus on the specifics of CPython's implementation and finally see how Python dictionaries work behind the scenes.

In this series, we will be building a dam monitoring dashboard using Django and third party graphing libraries. You will learn: the basics of Django’s Authentication System, how to integrate Bokeh with Django for interactive plots, how to add interactive maps with Leaflet, integrate the Django REST Framework into an existing Django project, and how to bring it all together to create a dashboard. Check out 

 and 

Everything you might need to know to get going with writing Python interfaces to C++ code. 

A practical guide on calling Go from Python using ctypes.

In this article I will introduce you to Conway's Game of Life, an interesting simulation that plays animated patterns on a grid. You will learn about Test parametrization, Building test matrices, Basic mocking and Testing Python exceptions.

Learn how to use computer vision with Python to identify which DMC threads are used in embroidery hoop images. 

Free Yourself From Unexpected Runtime Exceptions 

Learn how to build a simple blockchain from scratch in Python so that you can understand how it works at a more fundamental level.

Automated planning is a field of AI techniques for determining how to transform the world from an initial state to a goal state. This guide implements a form of classical planning in which we represent the problem domain as a set of state variables that are modified by each action taken.

The Django 3.2 version has new features related to compressed fixtures and fixtures compression. This article explores the topic and provides some sample benchmarks.

Using SQL on top of Pandas, Spark, and Dask.

In this tutorial, you will discover how to develop a Multilayer Perceptron neural network model for the cancer survival binary classification dataset.

In this essay, we alter the Python Grammar and allow it run Assignment Expressions without any parenthesis.

Interesting Projects, Tools and Libraries

A new free website that provides statistics and analysis on the most popular data science and data engineering projects. It covers over 100 projects, including the most popular Python projects in this space, such as Sklearn, Pandas, PyTorch, TensorFlow, and Dask.

A Python/Pytorch app for easily synthesizing human voices.

Visualize disk space and disk usage in your UNIX\Linux terminal.

Filter, sort and paginate SQLAlchemy query objects. Ideal for exposing these actions over a REST API.

Uniton lets you control the Unity game engine from Python. It aims to instrumentalize Unity and make it more useful in non-game applications.

Auto-Magical Suite of tools to streamline your ML workflow. Experiment Manager, ML-Ops and Data-Management.

This Django library will format Django migrations using black and isort.

A telegram bot that applies watermark on images, gifs, and videos.

A production ready example Django app that's using Docker and Docker Compose.

An implementation of model parallel GPT-3-like models on GPUs, based on the DeepSpeed library. Designed to be able to train models in the hundreds of billions of parameters or larger.

Distributed cross-network remote debugging for Python.

New Releases

Python 3.9.3 was released two days ago on Friday, April 2nd. It contains important security content listed below for reference. Unfortunately, it also introduced an unintentional ABI incompatibility, making some C extensions built with Python 3.9.0 - 3.9.2 crash with Python 3.9.3 on 32-bit systems. To minimize disruption, I decided to recall 3.9.3 and introduce this hotfix release: 3.9.4.

This version has been designated as a long-term support (LTS) release, which means that security and data loss fixes will be applied for at least the next three years. It will also receive fixes for crashing bugs, major functionality bugs in newly-introduced features, and regressions from older versions of Django for the next eight months until December 2021.

Upcoming Events and Webinars

This talk will cover a number of these potential security mistakes that can be all too easy to make.

There will be following talks

  • Data science volunteering for criminal justice

  • Declarative Python-Based Monitoring Apps

There will be following talks

  • Autonomous Object Detection

  • Understanding SHAP values for better model interpretation

There will be following talks

  • Idiomatic Pandas - 5 tricks for writing better pandas code

  • Module of the Month: Scrapy

Ever wondered what all the hype around GraphQL is about? Is it the estranged sibling of SQL? What is its obsession with graphs anyway? This talk will walk through the what, the why and the how of GraphQL. By the end of this presentation we will have a working GraphQL server in Python that you can build and deploy at home!

There will be following talks

  • Forecasting challenges and the contributions of the M competitions

  • MIY: Model it Yourself with ML Legobricks

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.