Issue #578

Coding With ChatGPT, Pydantic's Future, Properties, and More

May 23, 2023

Coding With ChatGPT, Pydantic's Future, Properties, and More
#578 – MAY 23, 2023 VIEW IN BROWSER
The PyCoder’s Weekly Logo
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.
REAL PYTHON

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.
KENNEDY, COLVIN, RAMIREZ podcast

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.IOsponsor

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.
PYTHON.ORG

FastAPI 0.95.2 Security Fix Released
TIANGOLO.COM


Discussions


What Are Some Good AI Regulations?
SLASHDOT.ORG

What’s Your Favorite GPT Powered Tool?
HACKER NEWS


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.
ADRIAN

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 →
SEMGREPsponsor

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.
DATASCIENTYST

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.
REAL PYTHON course

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.
JAKE EDGE

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.
JAY QI

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.
TIMO ZIMMERMANN

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.
JOHN MCBRIDE


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 →

Vecs: Vector Search Client for PostgreSQL/pgvector
GITHUB.COM/SUPABASE • Shared by Oliver Rice

lazycsv: Memory-Efficient CSV Parser
GITHUB.COM/CRUNCH-IO

cleanvision: Find Issues in Image Datasets
GITHUB.COM/CLEANLAB

json5kit: Whitespace-Preserving JSON5 Parser
GITHUB.COM/TUSHARSADHWANI • Shared by Tushar Sadhwani

rsync-time-machine.py: Time Machine-Style Backups
GITHUB.COM/BASNIJHOLT

📆🐍 Upcoming Python Events


PyKla Monthly Meetup
May 24, 2023

PyStaDa
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!
Copyright © 2023 PyCoder’s Weekly, All rights reserved.