Python Documentary, pytest’s parametrize, Litestar, Expressions in Pandas and more
with some more interesting news, articles, packages and projects
News
Python: The Documentary | An origin story
pypistats.org is now operated by the Python Software Foundation
Articles
Starting with pytest’s parametrize
If you’re writing test cases, I strongly suggest using pytest’s parametrize
feature. It helps you save both time and code. In this article, Ned Batchelder explained how to use it with a clear example.
# Ned Batchelder
Litestar is worth a look
Litestar
is a Python web framework that’s built with async support and type hints in mind. You might think, “But we already have FastAPI.” That’s true, but James Bennett shared some good reasons why this framework is worth exploring.
# James Bennett
Proper Guided Roadmap to learn the Python programming language
A complete guide to learning Python from beginner to advanced, created by Santosh Bhandari.
# Santosh Bhandari
Favourite Python tricks or lesser-known features
In this Reddit post, people shared some really cool Python features with examples like itertools.batched
, the walrus operator, python -m http.server
, defaultdict
, functools.partial
and more.
Expressions are coming to pandas!
Pandas was introduced 17 years ago and quickly became the go-to tool for data science in Python. Over time, new libraries appeared, building on pandas’ ideas while fixing some of its limitations. Now, pandas has come full circle with a new syntax inspired by those newer libraries. In this article, Marco Gorelli explains why this change happened and how you can use it.
# Marco Gorelli
Interesting Packages and Projects to Explore
FastAPI boilerplate - An extendable async API using FastAPI, Pydantic V2, SQLAlchemy 2.0, PostgreSQL and Redis
mutmut - Mutation testing for Python
cruft - Allows you to maintain all the necessary cruft for packaging and building projects separate from the code you intentionally write. Built on-top of CookieCutter
pyee - A rough port of Node.js's EventEmitter to Python with a few tricks of its own
Pyxel - A retro game engine for Python
Recent Noteworthy Package Releases
protovalidate 0.15.0 - Protocol Buffer Validation for Python
onnx 1.19.0 - Open Neural Network Exchange
cron-descriptor 2.0.x - A Python library that converts cron expressions into human readable strings
rpaframework 31.0.0 - A collection of tools and libraries for RPA
litellm 1.76.0 - Library to easily interface with LLM API providers
onnxscript 0.4.0 - Naturally author ONNX functions and models using a subset of Python