Python Trending Weekly
ISSUE 26

Python Trending Weekly #26 (2023-11-11)

2023-11-11 Season 1

TL;DR

Kenneth Reitz's long-overdue apology and the state of requests 3 headline the issue; NumPy preps its API for 2.0 and Google's pyink, a Black fork, is worth a look.

Articles 12 Projects 12 Media 2
🦄

Articles & Tutorials

× 12
01 Kenneth Reitz: Belated Apology and Progress on requests 3 kennethreitz.org

In 2019, there was a bit of a kerfuffle over the funding of requests 3, and then it seemed to go quiet. Now the author has posted an apology, and it looks like the project is back on! The post lists some of the things that have been done so far, including typing all of the public interfaces, refactoring all of the namespaces, and making it async compatible. (See also: the funding kerfuffle: Why I'm not collaborating with Kenneth Reitz)

02 grequests: Making Asynchronous HTTP Requests coderslegacy.com

Built on top of the gevent library, grequests allows you to make multiple requests concurrently, harnessing the power of asynchronous programming. This introductory tutorial covers its basic usage along with a tip to enhance performance.

03 Developing a Python Compiler and Interpreter mathspp.com

This is a series of blog posts, currently at 6 posts, that aims to explore and investigate the concepts and algorithms required to implement a programming language like Python, covering topics such as lexers, parsers, compilers, and interpreters.

04 Build an AI Tool to Summarize Books Instantly with Python + ChatGPT levelup.gitconnected.com

A tutorial to build a book summarization tool using Python, Langchain, and OpenAI embeddings. The author also published an online demo using Streamlit.

AI Summarizes Books
05 Database Generated Columns: Django & SQLite paulox.net

GeneratedField is a new feature in the upcoming Django 5.0 that leverages the database's ability to automatically compute the value of a data column. The author, a Django contributor, tested various scenarios of using this new feature in SQLite. (P.S. The article also introduces some other new goodies in Django 5.0.)

06 You Can Do These Things with Python's bisect Module martinheinz.dev

The bisect module only has two functions, but it can do a lot of things. The article introduces: binary search, prefix search, finding consecutive equal values in a list, finding the closest key in a dictionary, sorting custom objects, searching by dictionary key.

07 Why Building SciPy for Python 3.12 on Windows Is a Minor Miracle labs.quansight.org

Whenever Python releases a new version, maintainers of third-party libraries scramble to make their packages compatible. It's not easy. The author describes the daunting challenges they faced, which are really just the Python community's long-standing packaging problems. Fortunately, the maintainers found a workable solution.

08 Web Scraping and Parsing Experiment with AI (HTML Parsing with GPT-4) serpapi.com

OpenAI has released a new model, but how capable is it? What are the advantages and disadvantages of using GPT-4 for web scraping? The article experiments with scraping a well-structured website, scraping Google organic search results, scraping Google SERP, and scraping Google MAPS results.

09 Django vs Flask: Which Is the Best Python Web Framework? blog.jetbrains.com

Which one should you choose between the two most popular web frameworks in the Python world? This is an in-depth and lengthy article that compares them in detail in terms of templating system, URL dispatcher, database support, authentication and authorization, testing, software architecture, learning curve, and more. There is no better one, only the one that suits you better.

Web Frameworks Usage Share
10 The Right Way to Install Python on Mac marvelousmlops.substack.com

How do you install Python on your new M2 MacBook? In this hands-on tutorial, the author suggests using Pyenv + pyenv-virtualenv.

11 Simple Android Data Analytics App in Python techbeamers.com

This tutorial guides you to build an Android data analytics app that logs and displays the time you spend on your screen throughout the day. It uses kivy as the GUI framework and Pandas for data analysis.

12 Improving the Python API of Numpy in Preparation for Version 2.0 labs.quansight.org

NEP-52 is an enhancement proposal for Numpy that aims to identify, refactor, and deprecate outdated, duplicated, and unused Python APIs in Numpy. This work is in preparation for a smooth transition to Numpy 2.0. The author shares the challenges and some of the achievements he has made in this effort.

🎁Python Developers Survey🎁 The official 7th annual survey to understand the state of the Python developer community. Take a few minutes to fill out the survey: Survey Link

🎁 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 pyvideotrans: Video language translation and dubbing github.com

A video translation tool that can translate a video from one language to another and dub it. (star 1.4K)

02 pyink: Google's fork of Black, a code formatter github.com

A fork of Black designed to address issues that arise from having thousands of engineers working in a monorepo at Google.

03 sqlmodel: SQL Database for Python github.com

An SQL database from the creator of FastAPI, combining the power of SQLAlchemy and Pydantic with a focus on simplicity, compatibility, and robustness. (11.2k stars)

04 Wagtail: A Django Content Management System github.com

Wagtail is a Django-based CMS (Content Management System) that focuses on user experience. In the previous issue, we shared an article titled "Why Is the Django Admin Ugly?." Wagtail is the best recommendation for end users. (16.2k stars)

Wagtail's beautiful interface design
05 NBA-Machine-Learning-Sports-Betting: NBA Game Predictions Using Machine Learning github.com

A machine learning AI to predict the outcome of NBA games. Includes team data from the 2007-08 season to the current season.

06 Python_EBook_Free: Python E-books and Resources github.com

This repository archives a collection of Python e-books and learning resources, all in PDF format.

07 pathway: A high-throughput and low-latency real-time data processing framework github.com

A data processing framework that combines batch, streaming, and real-time APIs of LLM programs, which can interact with various data sources (e.g., Kafka, CSV files, SQL/noSQL databases, and REST APIs).

08 Prefect: A workflow orchestration tool for building data pipelines github.com

It is an orchestrator for data-intensive workflows that turns Python functions into observable and composable units of work. It supports features such as automatic retries, distributed execution, scheduling, caching, and has a powerful dashboard for monitoring. (13.2k stars)

Prefect's dashboard
09 VideoCrafter: High-Quality Video Generation Model github.com

A video generation and editing tool that supports high-definition video. It currently includes two models: text-to-video and image-to-video. (3K stars)

10 42 Developer Resources to Kickstart Your Coding Journey madza.hashnode.dev

This article compiles a list of essential resources, courses and tutorials, coding games, books, podcasts, YouTube channels, best practices, and more.

11 networkx: Python Package for Network Analysis github.com

Used for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks. It is designed for the analysis of complex networks. (13.4K stars)

12 PythonFrameworks: A Collection of Python Frameworks github.com

This project collects various frameworks in Python, including web frameworks, API frameworks, CMS, ML&DL&AI, task/message queues, parallel & distributed computing, workflow & pipelines, DevOps, web scraping, GUI&TUI, and more. An online website is also provided.

A subset of web frameworks
🐢

Podcasts & Videos

× 2
01 core.py: A New Python Podcast podcasters.spotify.com

Hosted by Python core developers Pablo Galindo and Łukasz Langa, the podcast has already released two episodes: Core Sprint in Brno & Python 3.13.0 alpha 1 and PEP-703: Removing the GIL

02 Why Static Typing Is Making a Come back youtube.com

Dynamically typed programming languages like Python, Ruby, PHP, and JavaScript, which emerged in the 1990s, are embracing static typing (mypy, Sorbet, Hack, and TypeScript), and relatively new languages like Go, Kotlin, Dart, and Rust are statically typed. Why is static typing making a comeback? What does this mean for the future?

  1. Two podcast episodes with the author of Boost Your Git DX

After the release of his new book Boost Your Git DX, Adam Johnson was featured on two podcast episodes: Real Python Podcast #179 and Pybites #139.

ESC
↑↓ select · ↵ open175 issues