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.
You are receiving this email because you opted in on our website at pycoders.com
Our mailing address: DevCademy Media Inc. · #720-999 West Broadway, Vancouver BC V5Z 1K5, Canada

Unsubscribe | Update Email Address

Older messages

Faster CPython at PyCon, Trusted Publishing, Packaging, and More

Tuesday, May 16, 2023

Faster CPython at PyCon #577 – MAY 16, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo Faster CPython at PyCon This article summarizes the report the Faster CPython team gave at PyCon 2023. It gives

SOLID OOP, Mojo, PyCon Keynote, and More

Tuesday, May 9, 2023

SOLID Principles: Improve Object-Oriented Design in Python #576 – MAY 9, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo SOLID Principles: Improve Object-Oriented Design in Python In this tutorial,

Object Oriented Python, PyCon 2023, Mastodon Bot, and More

Tuesday, May 2, 2023

Python Classes: The Power of Object-Oriented Programming #575 – MAY 2, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo Python Classes: The Power of Object-Oriented Programming In this tutorial, you

PyPI Trusted Publishers, Namespaces, ChatGPT REPL, and More

Tuesday, April 25, 2023

PyPI Introduces "Trusted Publishers" #574 – APRIL 25, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo PyPI Introduces “Trusted Publishers” PyPI package maintainers can adopt a new, more

Self-Healing Code, Pandas 2.0 Performance, Automation, and More

Wednesday, April 19, 2023

"Self-Healing" Programs That Fix Themselves Thanks to AI #573 – APRIL 18, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo “Self-Healing” Programs That Fix Themselves Thanks to AI Wolverine

You Might Also Like

Import AI 399: 1,000 samples to make a reasoning model; DeepSeek proliferation; Apple's self-driving car simulator

Friday, February 14, 2025

What came before the golem? ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Defining Your Paranoia Level: Navigating Change Without the Overkill

Friday, February 14, 2025

We've all been there: trying to learn something new, only to find our old habits holding us back. We discussed today how our gut feelings about solving problems can sometimes be our own worst enemy

5 ways AI can help with taxes 🪄

Friday, February 14, 2025

Remotely control an iPhone; 💸 50+ early Presidents' Day deals -- ZDNET ZDNET Tech Today - US February 10, 2025 5 ways AI can help you with your taxes (and what not to use it for) 5 ways AI can help

Recurring Automations + Secret Updates

Friday, February 14, 2025

Smarter automations, better templates, and hidden updates to explore 👀 ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

The First Provable AI-Proof Game: Introducing Butterfly Wings 4

Friday, February 14, 2025

Top Tech Content sent at Noon! Boost Your Article on HackerNoon for $159.99! Read this email in your browser How are you, @newsletterest1? undefined The Market Today #01 Instagram (Meta) 714.52 -0.32%

GCP Newsletter #437

Friday, February 14, 2025

Welcome to issue #437 February 10th, 2025 News BigQuery Cloud Marketplace Official Blog Partners BigQuery datasets now available on Google Cloud Marketplace - Google Cloud Marketplace now offers

Charted | The 1%'s Share of U.S. Wealth Over Time (1989-2024) 💰

Friday, February 14, 2025

Discover how the share of US wealth held by the top 1% has evolved from 1989 to 2024 in this infographic. View Online | Subscribe | Download Our App Download our app to see thousands of new charts from

The Great Social Media Diaspora & Tapestry is here

Friday, February 14, 2025

Apple introduces new app called 'Apple Invites', The Iconfactory launches Tapestry, beyond the traditional portfolio, and more in this week's issue of Creativerly. Creativerly The Great

Daily Coding Problem: Problem #1689 [Medium]

Friday, February 14, 2025

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a linked list, sort it in O(n log n) time and constant space. For example,

📧 Stop Conflating CQRS and MediatR

Friday, February 14, 2025

​ Stop Conflating CQRS and MediatR Read on: m​y website / Read time: 4 minutes The .NET Weekly is brought to you by: Step right up to the Generative AI Use Cases Repository! See how MongoDB powers your