Episode Details
Back to Episodes
Pydantic Data Validation & Python Web Security Practices
Description
How do you verify and validate the data coming into your Python web application? What tools and security best practices should you consider as a developer? Christopher Trudeau is back on the show this week, bringing another batch of PyCoder’s Weekly articles and projects.
We discuss the recent Real Python tutorial “Pydantic: Simplifying Data Validation in Python.” The piece covers installing the library with optional dependencies, working with base models, validating functions, and managing environment variables.
We continue our conversation about web development with another article about Python security best practices. This article covers several Python libraries and crucial steps you can take to help make your web-based applications more secure.
We also share several other articles and projects from the Python community, including a news roundup, why Python lists multiply oddly, inline run dependencies in pipx, a discussion about open-source contribution assignments, playing sounds in Python, and a Python library to access ISO country definitions.
This episode is sponsored by Mailtrap.
Course Spotlight: Using raise for Effective Exceptions
In this video course, you’ll learn how to raise exceptions in Python, which will improve your ability to efficiently handle errors and exceptional situations in your code. This way, you’ll write more reliable, robust, and maintainable code.
Topics:
- 00:00:00 – Introduction
- 00:02:40 – Python 3.12.3, Python 3.11.9, and 3.13.0a6 Released
- 00:03:43 – Django Bugfix Release Issued: 5.0.4
- 00:04:48 – PEP 738 Accepted: Adding Android as a Supported Platform
- 00:05:53 – EuroPython Tickets on Sale: Prague/Remote July 8-14
- 00:06:38 – PyCon Portugal 2024
- 00:07:17 – Pydantic: Simplifying Data Validation in Python
- 00:15:24 – Sponsor: Mailtrap
- 00:15:58 – Why Do Python Lists Multiply Oddly?
- 00:22:21 – Best Python Security Practices for Web Developers
- 00:34:13 – Video Course Spotlight
- 00:35:38 – Inline Run Dependencies in
pipx1.4.2 - 00:40:16 – So Your Teacher Wants You to Do Open Source
- 00:54:49 – nava: Play Sounds in Python
- 00:56:25 – pycountry: A Python library to access ISO country definitions
- 00:58:18 – Thanks and goodbye
News:
- Python 3.12.3 and 3.13.0a6 Released
- Python 3.11.9 Released
- Django Bugfix Release Issued: 5.0.4
- PEP 738 Accepted: Adding Android as a Supported Platform
- PEP 742 Accepted: Narrowing Types With TypeIs
- EuroPython Tickets on Sale: Prague/Remote July 8-14
- PyCon Portugal 2024
Show Links:
- Pydantic: Simplifying Data Validation in Python – Discover the power of Pydantic, Python’s most popular data parsing, validation, and serialization library. In this hands-on tutorial, you’ll learn how to make your code more robust, trustworthy, and easier to debug with Pydantic.
- Why Do Python Lists Multiply Oddly? – In Python you can use the multiplication operator on sequences to return a repeated version of the value. When