Python Weekly (Issue 572 October 20 2022)

Python Weekly - Issue 572

Python Weekly

Welcome to issue 572 of Python Weekly. It has been more than 6 weeks, our Twitter account

all of a sudden got suspended for no reason. I immediately appealed via their standard process and also followed multiple times, but no response at all. 😞 Do we have any subscriber who works at Twitter and can help get our account reinstated?

From Our Sponsor 

Join the Fetch the Flag CTF to solve 16 challenges, compete against thousands of teams, and win prizes. Plus, prepare for game day by learning hacking tactics in the CTF 101 workshop. Register to join on Nov. 9.

Articles, Tutorials and Talks

In this article, we will trace the execution path of the "Hello World" micro-program written in Python and run on Windows, starting from a single call to the high-level print function, through the subsequent levels of abstraction of the interpreter, operating system and graphics drivers, and ending with the display of the corresponding pixels on the screen. As it turns out, this path in itself is neither simple nor short, but definitely fascinating.

This post will talk about how we use binary search to isolate miscompiled functions, a technique that is applicable to any compiler if you have the right infrastructure.

In data import processes it’s often useful to have a “dry run” mode, that runs through the process but doesn’t actually save the data. This can allow you to check for validity and gather statistics, such as how many records already exist in the database. In this post, we’ll look at how to implement a dry run mode in Django by using a database transaction and rolling it back.

You can easily get overwhelmed when working with date and time data. There are numerous date and time formats, ISO standards, time zones, and daylight-saving settings. In today’s video, I am taking a deep dive into Python’s built-in datetime package and the available alternatives that can help you quickly deal with this type of data.

Since starting a new job earlier this year, I've spent a good amount of time learning how to leverage type hints to help write readable, maintainable code. Let's take a look at some patterns that arise in Python where type hinting can get a little bit tricky.

Optical Character Recognition (OCR) automates extracting text from visual assets such as PDFs and images. This tutorial teaches how to use Amazon Textract and AWS Lambda to build an OCR service.

A case study of the Guardian's spaCy-Prodigy workflow to modularize quote extraction for content creation. This study includes iterative annotation guidelines and custom interface functionality.

We took a library used for function minimization, attached Stockfish to it, and used it to generate surprisingly complex mate in 3 chess puzzles without too much code. 

Building multi-model applications with Redis Stack is surprisingly straightforward! Follow along with a tutorial that shows how to build a knowledge base in Python that incorporates powerful search features.

Learn about how they work, how you should use them, and what you absolutely should not do.

Historical stock index data can be hard to find for free, but when we use the SEC's EDGAR system and Python, we can extract it quite easily.

Presentation is a great way to share your results and findings with a non-technical audience. The data-rich presentation with charts, tables, and code may be tedious to create. The good news is that you can create a presentation directly from Jupyter Notebook!

Interesting Projects, Tools and Libraries

Learn data visualization with Python. You will find code examples of Python graphs made with matplotlib, seaborn, plotly and other packages.

A Deep Learning framework created from scratch with Python and NumPy.

Puff is a batteries included "deep stack" for Python. It's an experiment to minimize the barrier between Python and Rust to unlock the full potential of high level languages. Build your own Runtime using standard CPython and extend it with Rust. 

htmx-Flask is an extension for Flask that adds support for htmx to your application. It simplifies using htmx with Flask by enhancing the global request object and providing a new make_response function.

A Python package to make publication-ready but customizable coefficient plots.

Load SQLite3 databases into PostgresSQL.

Upcoming Events and Webinars

There will be following  talks

  • HTTP codes and how APIs use and abuse them

  • Fast Tests

  • A molecular biologist's journey from bash to Python

There will be a talk, Python in cybersecurity.

There will be following talks

  • Computer Vision for Intelligent Transportation Systems

  • A quick introduction to micro-Python

  • Assessing the performance of autonomous vehicles by using computer vision

There will be following talks

  • How to design an MLOps framework: Building operational systems for big data ML models

  • Mapping in Python: Using the Geopy and folium python packages

There will be a talk, Building an MLOps platform at HelloFresh.

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.