Issue #578 (May 23, 2023)

#578 – MAY 23, 2023

ChatGPT: Your Personal Python Coding Mentor

Large language models have gained popularity since OpenAI released ChatGPT. In this tutorial, you’ll learn how to use ChatGPT as your Python coding mentor. You’ll study a variety of use cases, learn how to interpret results, and learn to beware of incorrect and irrelevant responses.

Future of Pydantic and FastAPI

This interview with Samuel Colvin from Pydantic and Sebastián Ramírez from FastAPI took place at PyCon 2023 and covers the changes to Pydantic as part of its 2.0 release along with the impacts that has on libraries built on top of it.

Keep Corrupted URLs From Damaging Your Application

Explore the challenges that unsanitized URLs can bring to your application, and how to mitigate these risks in Snyk’s article on secure URL validation in Python →
SNYK.IO sponsor

Use Properties to Add Dynamic Behavior to Attributes

This article teaches you how to use properties to add dynamic behavior to your attributes. It covers the most common use cases for properties, how to use them, and shows examples of real-world usages of this feature.
RODRIGO GIRÃO SERRÃO • Shared by Rodrigo Girão Serrão

PyPI Temporarily Suspended New Registrations

Due to a large volume of traffic from malicious users, PyPI temporarily suspended new account and project registrations on May 20th. The suspension was lifted 30 hours later on May 21st.

FastAPI 0.95.2 Security Fix Released



What Are Some Good AI Regulations?


What’s Your Favorite GPT Powered Tool?


Articles & Tutorials

Why You Should Still Read the Docs

Do you feel you’re fighting your tools? Do you feel you’re relying too much on autocomplete and inline documentation? tl;dr: Most good documentation won’t show up in your IDE – rather, it is about how to use the library, and the problem the library is solving.

My Favorite Python Packages for Building Flask Applications

This blog post lists the Python packages that Patrick prefers to use when building Flask applications. These packages help with developing APIs, building static sites, building web applications, and testing Flask applications.
PATRICK KENNEDY • Shared by Patrick Kennedy

Keep Your Python Code Secure – Analyze for Free, no Expertise Required

Scan your code and dependencies for security vulnerabilities with Semgrep – the trusted OSS tool used by top companies like GitLab, Snowflake, and Slack. No security expertise needed, simply add your project and let Semgrep do the work in just minutes →
SEMGREP sponsor

Pandas vs Julia: Cheat Sheet and Comparison

This is a Python/Pandas vs Julia cheatsheet and comparison. You can find what is the equivalent of Pandas in Julia or vice versa. With an associated Hacker News Discussion.

Metaclasses in Python

Metaclasses are an important but mysterious behind-the-scenes mechanism for instantiating classes in Python. In this video course, you’ll learn how Python’s metaclasses work in object-oriented programming.

Faster CPython at PyCon, Part Two

This is the second part of an article describing the conversations at PyCon around CPython optimizations and performance improvements being worked on as part of the Faster CPython project.

The Basics of Python Packaging in Early 2023

This post is a good guide to the latest in Python packaging, including the minimal configuration you need to adopt the most recent packaging standards.

Caching and Django Rest Framework

How and why to implement and API caching strategy when using the Django Rest Framework. A few lines of code can make a big difference in performance.

Comparing to None in Python and Pandas

Missing data are a frequent source of headache and bugs. This post discusses three guidelines that make it less error-prone.
REKA HORVATH • Shared by Reka

Why Engineers Need to Be Bored

An analysis on boredom in engineering productivity and how it can lead to deeper innovation.

Projects & Code

Vecs: Vector Search Client for PostgreSQL/pgvector

GITHUB.COM/SUPABASE • Shared by Oliver Rice

lazycsv: Memory-Efficient CSV Parser


cleanvision: Find Issues in Image Datasets


json5kit: Whitespace-Preserving JSON5 Parser

GITHUB.COM/TUSHARSADHWANI • Shared by Tushar Sadhwani Time Machine-Style Backups



PyKla Monthly Meetup

May 24, 2023


May 24, 2023

Weekly Real Python Office Hours Q&A (Virtual)

May 24, 2023

PyCon Italia 2023

May 25 to May 29, 2023

SPb Python Drinkup

May 25, 2023

Django Girls Groningen

May 27 to May 28, 2023

DjangoCon Europe 2023

May 29 to June 3, 2023

Happy Pythoning!
This was PyCoder’s Weekly Issue #578.
View in Browser »

[ Subscribe to 🐍 PyCoder’s Weekly 💌 – Get the best Python news, articles, and tutorials delivered to your inbox once a week >> Click here to learn more ]

Source:: PyCoder’s