Python Trending Weekly
ISSUE 22

Python Trending Weekly #22 (2023-10-12)

2023-10-12 Season 1

TL;DR

Python 3.12.0 is officially out! Quick tours cover subinterpreters, native perf support and static typing upgrades, plus a supply-chain security take and eBPF-powered profiling.

Articles 12 Projects 12 Media 2
🦄

Articles & Tutorials

× 12
01 Python 3.12.0 Version Released python.org

Python's latest major version, 3.12, has been released! It includes many new features and optimizations, and several articles in this issue of the Weekly cover them. (Also see: A Closer Look at Python 3.12's New Features)

02 A Quick Look at Python 3.12: Subinterpreters realpython.com

What are Python subinterpreters? What does PEP-684 in version 3.12 do? What changes might we see in version 3.13?

03 The perf Feature in Python 3.12 manjusaka.blog

This article introduces the basic knowledge of Python stack frames, the implementation of trace and perf before 3.12, and the implementation of the new Linux native perf introduced in 3.12.

04 Python 3.12 Quick Look: Static Typing Improvements realpython.com

Version 3.12 brings several adjustments and improvements: type variables to annotate generic classes and functions, new syntax for type variables, use of the new @override decorator for model inheritance, and more precise annotation of **kwargs with TypedDict.

05 Dependency Injection in FastAPI: Building Maintainable and High-Performance Web Applications juejin.cn

Dependency injection is a powerful design pattern. How can we use dependency injection in FastAPI to build maintainable and high-performance web applications? The content includes: dependency injection for managing configuration, dependency injection for database access and ORM, advanced dependency injection techniques, testing dependency injection, dependency injection for performance optimization and caching, security and dependency injection, etc.

06 A Deep Dive into the Python Virtual Machine: How Closures Are Implemented Under the Hood juejin.cn

This article introduces the usage examples and principles of closures, and mainly discusses how function closures are implemented at the virtual machine level.

07 Exploring the Pexpect Library: A Deep Dive into the expect_list Method juejin.cn

Pexpect is a library for automating interactive applications such as ssh, ftp, passwd, telnet, and more, with 2.4K stars on Github. This article introduces the usage of its expect_list method.

08 Introducing textual-plotext, a library for plotting in the terminal textual.textualize.io

This blog post introduces the textual-plotext library, which allows you to plot using Plotext in the terminal.

09 Python Asyncio Series: 5 Articles bbc.github.io

A series of blog posts from the BBC R&D Cloudfit team, the Asyncio series has been updated with 5 articles covering fundamental concepts and patterns, asynchronous context managers and iterators, library support, and mixing async and sync code.

10 Profiling Python and Ruby with eBPF polarsignals.com

Using eBPF to read abstract stack data from memory structures, enabling stack traces and analysis of code execution.

11 Python 3.12: Changes That Didn't Make the Headlines bitecode.dev

The article covers less-publicized changes in version 3.12: improvements to the pathlib library, a better debugging experience, slice objects are now hashable, the surprise appearance of math.sumprod(), and a new command-line interface.

12 Python 3.12.0 from a Supply Chain Security Perspective sethmlarson.dev

What is the release process for Python versions? What are some areas for improvement in the way versions are built? The article also covers using a Software Bill of Materials (SBOM) to track the subcomponents of a software distribution and how they change between versions.

🎁 Python Trending Weekly 🎁 organizes its content into seasons, with every 30 issues forming a season. The highlights from the first season have been compiled for your convenience. You can access them online here (Chinese).

🐿️

Projects & Resources

× 12
01 mwmbl: Open-source, non-profit search engine written in Python github.com

A non-profit, ad-free, and free search engine that focuses on usability and speed. It's currently a proof of concept and has a small index of pages. (1K stars)

02 dataherald: Natural Language to SQL Engine github.com

Enterprise Q&A over structured data, allowing to set up an API to answer questions in plain English.

03 dspy: A Framework for Programming with Foundation Models github.com

A framework for solving high-level tasks with language models (LMs) and retrieval models (RMs). It unifies techniques for prompting and fine-tuning LMs, as well as methods for inference, self-improvement, and augmentation with retrieval and tools. (3.5k stars)

04 TTS: Text-to-Speech Deep Learning Toolkit github.com

A library for state-of-the-art text-to-speech generation, with pretrained models in 1100 languages, and the ability to train new models and fine-tune existing ones for any language. (20.3k stars)

05 rustworkx: High-performance Python graphics library implemented in Rust github.com

A general-purpose Python graphics library written in Rust, featuring high performance and safety.

06 faststream: Build asynchronous services that interact with event streams github.com

A framework for building asynchronous services that interact with event streams like Apache Kafka, RabbitMQ, and NATS, simplifying the process of writing producers and consumers for message queues.

07 aiohttp: Asynchronous HTTP Client/Server Framework github.com

A popular asynchronous HTTP framework, whose main features include: support for HTTP protocol on both client and server sides, Websocket out of the box, support for middleware and pluggable routing. (14k stars)

08 panther: A High-Performance Python Web Framework github.com

A web framework based on Python 3.11, featuring an Object-Document-Mapper (ODM) for document-oriented databases, Websocket support, a caching API, built-in authentication and authorization classes, customizable middleware, visual API monitoring, and more.

09 Qiskit: An Open-Source SDK for Quantum Computing github.com

Could quantum computers be as easy to use as a laptop? That's the goal of the Qiskit project. This repository is the core component of Qiskit, containing the building blocks for creating and manipulating quantum circuits, operators, and primitives. (3.9k stars)

10 Vizro: A Toolkit for Building Modular Data Visualization Apps github.com

Create sophisticated dashboards with just a few lines of configuration, leveraging libraries like Plotly and Dash for rendering. Configuration can be written in multiple formats, including Pydantic models, JSON, YAML, or Python dictionaries. (1.5k stars)

11 NumPy-ML: Machine Learning with NumPy github.com

This is a collection of machine learning models, algorithms, and utilities, written exclusively using NumPy and the Python standard library. (14k stars)

12 PdfPlumber: A PDF Parsing Library github.com

Extract detailed information about every text character, rectangle, and line in a PDF, with support for table extraction and visual debugging. (4.6k stars)

🐢

Podcasts & Videos

× 2
01 Mojo Programming Language Tutorial for Beginners youtube.com

A Mojo tutorial video from FreeCodeCamp with close to 100k views.

02 Python 3.12: What's New and What You Need to Know youtube.com

This video explores the exciting new features and improvements in Python 3.12, as well as some elements that will be removed in the upcoming release.

ESC
↑↓ select · ↵ open175 issues