Python Weekly (Issue 625 November 9 2023)

Python Weekly - Issue 625

Python Weekly

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

From Our Sponsor 

Linting is a process where errors in the code can be flagged while source code is written. In other words, linting is a pre-build check, also called static code analysis.

Articles, Tutorials and Talks

In this video, we learn how we can read memory belonging to other processes by building a memory dumper from scratch. One of the key components is the /proc file system: an interface that the kernel provides for introspecting processes. Combined with ptrace, a system call that allows attaching to and taking control of another process, we write a program to automate extracting information that would otherwise be completely hidden to us!

A series about implementing the Python programming language, from scratch, in Python. The end goal of this series is to explore and play around with the concepts and algorithms that are needed to implement a programming language like Python. To that end, we will create a programming language with a subset of the features that Python has and, along the way, we will play with tokenizers, parsers, compilers, and interpreters!

An introduction to database generated columns, using SQLite and the new GeneratedField added in Django 5.0.

Moving SciPy to Meson meant finding a different Fortran compiler on Windows, which was particularly tricky to pull off for conda-forge. This post tells the story about how things looked pretty grim for the Python 3.12 release, and how things ended up working out just in the nick of time.

The article discusses the author's evolving perspective on the use of Python's pickle module in the machine learning ecosystem. It highlights the issues, security concerns, and brittleness associated with pickle, offering insights into the reasons behind its widespread usage and the challenges it addresses in the machine learning field.

Get the gist of any book without reading it cover to cover.

Learn how to optimize search and keep your data sorted in Python with the "bisect" module.

This video will cover 7 tips to streamline the structure of your Python data science projects. With the right setup and thoughtful software design, you'll be able to modify and enhance your projects more efficiently.

In the realm of software development, open-source tools and packages play a pivotal role in simplifying tasks and accelerating development processes. Yet, as the community grows, so does the number of bad actors looking to exploit it. A recent example involves developers being targeted by seemingly legitimate Python obfuscation packages that harbor malicious code.

A guided deep dive into Django's source code to understand why your application is failing CSRF validation.

The article highlights the new features added in Django 5.0.

Part 2 of different timestamp functions performance across Python versions and machine types. What is the fastest way to get the current time?

Interesting Projects, Tools and Libraries

Local AI talk with a custom voice based on Zephyr 7B model. Uses RealtimeSTT with faster_whisper for transcription and RealtimeTTS with Coqui XTTS for synthesis.

Let the Code Write Itself.

Open Source LLM toolkit to build LLM applications. TigerRAG (embedding, RAG), TigerTune (fine-tuning), TigerArmor (AI safety).

Enforce the output format (JSON Schema, Regex etc) of a language model.

Ship RAG based LLM web apps in seconds.

Python microframework for modular monoliths and loosely coupled apps.

The testing framework for ML models, from tabular to LLMs.

A generative and self-guided robotic agent that endlessly propose and master new skills.

Adds helpful links to the REPL when an exception happens.

A modern, modular, and robust TUI hex editor.

New Releases

This release includes the following announcements:

  • Improvements to Shift + Enter run line in terminal

  • Deprecated built-in linting and formatting features

  • Improvements to Python linting extensions

  • Reconfiguration of test output

  • Virtual environment deactivation help

  • Announcing Python in VS Code release videos

Upcoming Events and Webinars

There will be following talks

  • Image recognition using Python, PyTorch, OpenAI and Streamlit in Snowflake

  • Automated Photo Retouching

  • Advisory Databases and Dependabot: and How They Apply to Python

There will be following talks

  • Empowering the Future: Girl's Day in Germany

  • Developing a Large-scale Creative Commons Dataset for Image

There will be following talks

  • No downtime migrations in Django

  • The science of debugging

There will be following talks

  • How to build a great wind power forecast using machine learning 

  • Intelligent charging of EVs using machine learning

There will be following talks

  • Natural Language Processing - from Academic Theory to Business Application

  • TweetNLP

There will be following talks

  • Human/AI superteams: building collaborative systems with human-in-the-loop learning

  • A Gentle Introduction to Large Language Models

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.