Issue #569

Evaluating Packages, PyTorch 2.0, Lazy Recursion, and More

March 21, 2023

Evaluating Packages, PyTorch 2.0, Lazy Recursion, and More
#569 – MARCH 21, 2023 VIEW IN BROWSER
The PyCoder’s Weekly Logo
How to Evaluate the Quality of Python Packages
Just like you shouldn’t download any file from the Internet, you shouldn’t blindly install third-party Python packages without evaluating them first. This tutorial will give you the toolset to evaluate the quality of external Python packages before you implement them into your Python projects.

New Library Updates in PyTorch 2.0
Learn what’s changed in the newly released PyTorch 2.0 library. Includes new data collectors, augmentation operators, vision features, and loads more.

Generating Meaningful Tests for Busy Devs
With CodiumAI’s TestGPT, you can ensure that your code works exactly as you meant it to. TestGPT analyzes your code, docstring, comments, and interacts with you to suggest tests while you code. You only need to accept and commit to these tests to ensure the quality of your code →
CODIUM AIsponsor

Lazy Recursion, With Generators
This article introduces your to mixing generators with recursion to improve memory usage. Includes a short snippet on using yield and yield from.


Codon Achieves Orders-of-Magnitude Speedups

Articles & Tutorials

Python 3.12: A Game-Changer in Performance and Efficiency
Work on Python 3.12 is well under way and much of it focuses on performance improvements. This article gives you a tour of the changes to come, including improved parallelism, better memory management, even more improved error reporting, and more.

Documenting Python Projects With Sphinx and Read the Docs
In this video series, you’ll create project documentation from scratch using Sphinx, the de facto standard for Python. You’ll also hook your code repository up to Read The Docs to automatically build and publish your code documentation.

The New Notification Stack for Python Developers
Get the Python resources you need to build your notifications infrastructure, faster. Everything from code tutorials, to an SDK and docs all in one place. See for yourself →

Code Review: What and What Not to Automate?
This post tries to come up with some guidelines: Which parts of the review can be done well by our current tools? Which parts benefit from human intuition? We’re looking in details at reviewing tests, docs, code quality, and names.
REKA HORVATH • Shared by Reka

Building a Bloom Filter
Bloom filters are a data structure used to test whether an element is a member of a set. They’re commonly used in data science and are often part of interview questions. Learn how to build one and where you might use them.

How Virtual Environments Work
This article attempts to demystify virtual environments, why they exist and how they work. It even delves into why Brett is heading down this alley: running into challenges with cross platform tools and microenv.

Django: How to Profile and Improve Startup Time
“Your Django project’s startup time impacts how smooth it is to work with. Django has to restart your project every time you run a management command and when runserver reloads.” Learn how to make this faster.

Data Validation in Python: Pandera and Great Expectations
Data validation is a vital step in any data-oriented workstream. This post investigates and compares two popular Python data validation packages: Pandera and Great Expectations

Tutorial: Build a Terminal-Based TODO App
Learn how to build a simple TODO app in Python using the Textual library. The app runs inside the terminal and can be controlled from the comfort of your keyboard.
MATHSPP.COM • Shared by Rodrigo Girão Serrão

Using Python 3.11 With AWS Lambda
AWS Lambda currently limits Python to version 3.9. This article shows you how to get around that and use a more recent version of your favorite language.

Apify Python SDK: Build and Manage Web Scraping Solutions in the Cloud
Build scrapers in the cloud and rely on the Apify platform for data storage, scheduling runs, and proxies.

Python’s list Constructor: How to Use It and How Not To
When should you use the built-in list(…) function in Python? And when shouldn’t you? The list constructor is both underused and overused in Python.
PYTHONMORSELS.COM • Shared by Trey Hunner

More Batteries Please
This brief opinion piece from Carlton Gibson states why he thinks we need more functionality in the Python standard library rather than less.

Projects & Code

Brought to you by Real Python for Teamssponsor
Online Python training created by a community of experts. Give your team the real-world Python skills they need to succeed →

evals: Evaluate and Benchmark OpenAI Models

Generate Tests for Django REST Framework
GITHUB.COM/SAADMK11 • Shared by Maksudul Haque

pybroker: Algorithmic Trading in Python With ML

guardrails: Large Language Model Validator

duckargs: Code Generator for argparse Boilerplate

📆🐍 Upcoming Python Events

PyKla Monthly Meetup
March 22, 2023

Python Meeting Düsseldorf
March 22, 2023

Weekly Real Python Office Hours Q&A (Virtual)
March 22, 2023

Heidelberg Python Meetup
March 22, 2023

PyDelhi User Group Meetup
March 25, 2023

PythOnRio Meetup
March 25, 2023
Happy Pythoning!
Copyright © 2023 PyCoder’s Weekly, All rights reserved.