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

Key phrases

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

Upgrade Your Git Game, Visual Studio Getting 'Command Palette,' Python/Java in VS Code, .NET 9 Preview, More

Thursday, April 25, 2024

Home | News | How To | Webcasts | Whitepapers | Advertise .NET Insight April 25, 2024 THIS ISSUE SPONSORED BY: ■ dtSearch® - INSTANTLY SEARCH TERABYTES Upgrade Your Git Game in Visual Studio 2022

🔒 The Vault Newsletter: April issue 🔑

Thursday, April 25, 2024

Get the latest business security news, updates, and advice from 1Password. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Top Tech 🏆 Lenovo ThinkPad X1 Carbon Gen 12 Laptop Review — Testing an AI Voice Recorder

Thursday, April 25, 2024

Also: The Roborock S8 MaxV Ultra Vacuum is Excellent, and More! How-To Geek Logo April 25, 2024 Take a look at our latest reviews, featuring fun tech like the Lenovo ThinkPad X1 Carbon laptop,

⚙️ r1

Thursday, April 25, 2024

Plus: UK investigating OpenAI ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Charted | Economic Growth Forecasts for G7 and BRICS Countries in 2024 📊

Thursday, April 25, 2024

The IMF has released its economic growth forecasts for 2024. How do the G7 and BRICS countries compare in expected real GDP growth? View Online | Subscribe Presented by: Access European benchmarks with

Build5Nines Newsletter - April 25, 2024

Thursday, April 25, 2024

View this email in your browser Build5Nines Build5Nines Newsletter Thank you for subscribing! I look forward to sharing with you the latest cloud news, technical help, and other thoughts around DevOps

Discover the World's Easiest Parallel File System

Thursday, April 25, 2024

Join us in exploring the future of data management with Bjorn Kolbeck, a Google engineer turned CEO and Co-founder of Quobyte, the creators of the world's easiest parallel file system. ͏ ͏ ͏ ͏ ͏ ͏

Issue 314 - New Model 3 Performance is here

Thursday, April 25, 2024

View this email in your browser If you are just now finding out about Tesletter, you can subscribe here! If you already know Tesletter and want to support us, check out our Patreon page Issue 314 - New

Programmer Weekly - Issue 202

Thursday, April 25, 2024

View this email in your browser Programmer Weekly Welcome to issue 202 of Programmer Weekly. Let's get straight to the links this week. Quote of the Week "Computer science inverts the normal.

Python Weekly - Issue 647

Thursday, April 25, 2024

View this email in your browser Python Weekly Welcome to issue 647 of Python Weekly. Let's get straight to the links this week. From Our Sponsor Get Your Weekly Dose of Programming A weekly