Lessons Learned, Pydantic, ChatGPT Outage, and More

#570 – MARCH 28, 2023 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Lessons Learned From Four Years Programming With Python
What are the core lessons you’ve learned along your Python development journey? What are key takeaways you would share with new users of the language? This week on the show, Duarte Oliveira e Carmo is here to discuss his recent talk, “Four Years of Python.”
REAL PYTHON podcast

Data Modeling, Parsing and Validation Using Pydantic
Pydantic is a Python library that provides data validation and settings management using Python type annotations. It allows developers to define a schema for their data, which includes the expected data types, default values, and validation rules.
SAMEER SHUKLA • Shared by Sameer Shukla

ChatGPT Outage: Here’s What Happened
On March 20th ChatGPT had an outage. It was caused by an asyncio redis-py client bug and also resulted in a data leak. Read more for details.
OPENAI.COM

Snyk Top 10: Python OSS Vulnerabilities Cheat Sheet
Deep dive into the most prevalent critical and high open source vulnerabilities found by Snyk scans of Python apps in 2022. Learn more about how these high-risk vulnerabilities might be impacting open source packages you are using today and how to fix them →
SNYK.IOsponsor

Docker No Longer Sunsetting the Free Team Plan
DOCKER.COM

GitHub Updated Their RSA SSH Host Key
GITHUB

The Python Package Index Launches a Blog
PYPI.ORG

Django 4.2 Release Candidate 1 Released
DJANGO SOFTWARE FOUNDATION


Articles & Tutorials


Ban 1+N in Django
The 1+N database anti-pattern is common: fetch some rows from the database then re-fetch specific rows to get all the items. An ORM can hide this away and make you not realize it is happening. This article talks about how to stop it in Django. With added meta-bonus: he links to how he attempted to write the article with ChatGPT.
ALEXANDER SCHEPANOVSKI

Deep Neural Nets: 33 Years Ago and 33 Years From Now
This article examines the original paper that proposed back propagation neural nets and relates what has changed and what is the same. Using that knowledge, it looks forward to what neural nets may be able to do decades from now. Includes accompanying code samples.
ANDREJ KARPATHY

The Best Way to Structure Your NoSQL Data Using Python
Data modeling can be challenging. The question that most often comes up is, “How do I structure my data?” The short answer: it depends. That’s why the Redis folks wrote a comprehensive e-book that goes through 8 different optimal scenarios and shows how to model them in Redis →
REDIS LABSsponsor

No-async async With Python
“A (reasonable) criticism of async is that it tends to proliferate in your code. In order to await something, your functions must be async all the way up the call-stack. Textual is an async framework, but doesn’t require the app developer to use the async.” Learn how Textual accomplishes async-agnosticism.
WILL MCGUGAN

reduce(): The Power of a Single Python Function
“While Python is not a pure functional programming language, you still can do a lot of functional programming in it. In fact, just one function - reduce() - can do most of it.” This article introduces you to reduce().
MARTIN HEINZ

When Should You Use .__repr__() vs .__str__() in Python?
In this tutorial, you’ll learn the difference between the string representations returned by .__repr__() vs .__str__() and understand how to use them effectively in classes that you define.
REAL PYTHON

How to Control Crowds with Python, OpenCV and InfluxDB
In this quick training, learn how to build a face recognition application using open source tools like OpenCV (Open Source Computer Vision Library) and InfluxDB time series platform. Github repository included.
INFLUXDATAsponsor

Use TOML for .env Files?
Using .env files to specify configuration environments can be handy, but problematic when it comes to multiple platforms. Some toolsets are starting to explore the use of TOML instead.
BRETT CANNON

Marketing for Developers
A few simple steps can make all the difference in whether your project gets noticed. This article is about Django projects, but most of the advice applies across all code bases.
ADAM HILL

Run a Flask Server Inside a Readonly Docker Container
Learn how to run a Python server inside a read-only Docker container and how to pre-bundle the SCSS and JS files in a separate step.
JON JAGGER

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

VS Code Shortcuts for Efficient Python Programmers
Learn keyboard shortcuts that will make you a more efficient and productive Python programmer with VS Code.
RODRIGO GIRÃO SERRÃO

Generate Images Using OpenAI and DALL·E 2
Learn how to use Python to interface with OpenAI’s API to do image generation.
IDOWU OMISOLA


Projects & Code


alpaca-lora: Instruct-Tune LLaMA Text Model
GITHUB.COM/CHRIS-ALEXIUK

workedon: Track Your Work From the Shell
GITHUB.COM/VISESHRP • Shared by Visesh Prasad

chatblade: A CLI Swiss Army Knife for ChatGPT
GITHUB.COM/NPIV

pooch: A Friend to Fetch Your Data Files
GITHUB.COM/FATIANDO

nicegui: Create Web-Based UI With Python
GITHUB.COM/ZAUBERZEUG

📆🐍 Upcoming Python Events


Heidelberg Python Meetup
March 29, 2023

PyStaDa
March 29, 2023

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

SPb Python Drinkup
March 30, 2023

PyTexas 2023
April 1 to April 3, 2023

Melbourne Python Users Group, Australia
April 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

Evaluating Packages, PyTorch 2.0, Lazy Recursion, and More

Tuesday, March 21, 2023

How to Evaluate the Quality of Python Packages #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

BeeWare, Asyncio Overhead, Python & Julia, and More

Tuesday, March 14, 2023

Sharing Your Python App Across Platforms With BeeWare #568 – MARCH 14, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo Sharing Your Python App Across Platforms With BeeWare Are you interested in

Inlined Comprehensions PEP, Iterators, Pandas 2.0, and More

Tuesday, March 7, 2023

PEP 709: Inlined Comprehensions #567 – MARCH 7, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo PEP 709: Inlined Comprehensions Python Enhancement Proposal 709 covers a change to how comprehensions

NumPy for Speed, Multiprocessing Performance, XML to YAML, and More

Tuesday, February 28, 2023

Using NumPy and Linear Algebra for Faster Python Code #566 – FEBRUARY 28, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo Using NumPy and Linear Algebra for Faster Python Code Are you still using

Buffer Flushing, Async Bugs, SQLAlchemy 2.0, and More

Tuesday, February 21, 2023

How to Flush the Output of the Python Print Function #565 – FEBRUARY 21, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo How to Flush the Output of the Python Print Function In this tutorial, you

You Might Also Like

The Power of an Annual Review & Grammarly acquires Coda

Sunday, December 22, 2024

I am looking for my next role, Zen Browser got a fresh new look, Flipboard introduces Surf, Campsite shuts down, and a lot more in this week's issue of Creativerly. Creativerly The Power of an

Daily Coding Problem: Problem #1645 [Hard]

Sunday, December 22, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Implement regular expression matching with the following special characters: .

PD#606 How concurrecy works: A visual guide

Sunday, December 22, 2024

A programmer had a problem. "I'll solve it with threads!". has Now problems. two he ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌

RD#486 (React) Things I Regret Not Knowing Earlier

Sunday, December 22, 2024

Keep coding, stay curious, and remember—you've got this ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

🎶 GIFs Are Neat, but I Want Clips With Sound — Your Own Linux Desktop in the Cloud

Sunday, December 22, 2024

Also: 9 Games That Were Truly Ahead of Their Time, and More! How-To Geek Logo December 22, 2024 Did You Know Dextrose is another name for glucose, so if you see it listed prominently on the ingredients

o3—the new state-of-the-art reasoning model - Sync #498

Sunday, December 22, 2024

Plus: Nvidia's new tiny AI supercomputer; Veo 2 and Imagen 3; Google and Microsoft release reasoning models; Waymo to begin testing in Tokyo; Apptronik partners with DeepMind; and more! ͏ ͏ ͏ ͏ ͏ ͏

Sunday Digest | Featuring 'The World’s 20 Largest Economies, by GDP (PPP)' 📊

Sunday, December 22, 2024

Every visualization published this week, in one place. Dec 22, 2024 | View Online | Subscribe | VC+ | Download Our App Hello, welcome to your Sunday Digest. This week, we visualized public debt by

Android Weekly #654 🤖

Sunday, December 22, 2024

View in web browser 654 December 22nd, 2024 Articles & Tutorials Sponsored Solving ANRs with OpenTelemetry While OpenTelemetry is the new observability standard, it lacks official support for many

😸 Our interview with Amjad Masad

Sunday, December 22, 2024

Welcome back, builders Product Hunt Sunday, Dec 22 The Roundup This newsletter was brought to you by AssemblyAI Welcome back, builders Happy Sunday! We've got a special edition of the Roundup this

C#537 Automating Santa's Workshop with NServiceBus

Sunday, December 22, 2024

Using event-driven architecture for effective gift delivery 🎄🎁 ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌