Issue #533

TOML in Python 3.11, Django and Angular, Constrain With assert, and More

July 12, 2022

TOML in Python 3.11, Django and Angular, Constrain With assert, and More
#533 – JULY 12, 2022 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Python 3.11 Preview: TOML and tomllib
Python 3.11 will be released in the fall of 2022. In this tutorial, you’ll install the latest beta release of Python 3.11 in order to preview the new tomllib module that’s added to the standard library. You’ll also explore some of the static typing enhancements that are coming.
REAL PYTHON

Build a Progressive Web Application with Django and Angular
In this two-part article series, you’ll learn how to build a Progressive Web Application (and a fun trivia game) with Django and the Django Rest Framework for the backend API, and Angular for the frontend interface.
ROB ALFORD • Shared by Rob Alford

Connect, Integrate, & Automate Your Data—From Python, or Any Other Application or Tool
CData makes it easier to unlock the value of data — simplifying connectivity between applications and data sources. Our SQL-based connectors streamline data access making it easy to access real-time data from on-premise and cloud databases, SaaS, APIs, NoSQL and more. Visit cdata.com to learn more →
CDATA SOFTWAREsponsor

Apply Constraints With assert in Python
When applying runtime constraints on a value a common practice is to compare the value to an expected range and raise a ValueError if it’s not within the range. This article argues for the use of assert instead.
REDOWAN DELOWAR

Python 3.11 Release May Be Delayed
PYTHON.ORG

Quart Is Now a Pallets Project
PALLETSPROJECTS.COM


Discussions


PyPI Goes 2FA, atomicwrites Works Around It, Drama Ensues
REDDIT

What Is Something That Blew Your Mind in Python?
MATT HARRISON


Python Jobs


Remote (US) Python/JavaScript Full-Stack Software Engineers
UNITED STATES SENATE SERGEANT AT ARMS 📍 ANYWHERE

Senior Python Software Engineer
MYOME 📍 SAN FRANCISCO, CA, USA

Senior Full-Stack Web Developer
MONETIZEMORE 📍 ANYWHERE

Principal Python Engineer, 100% Remote
NIRA 📍 SAN FRANCISCO, CA, USA

More Python Jobs >>>


Articles & Tutorials


Functional Programming Jargon in Simple Terms
“Functional programming (FP) provides many advantages, and its popularity has been increasing as a result. However, each programming paradigm comes with its own unique jargon and FP is no exception. By providing a glossary, we hope to make learning FP easier.”
JAMES YOU

SQLite or PostgreSQL? It’s Complicated!
Employees at Twilio blog a lot and have an internal Python application that showed a dashboard about topics and their popularity. As the number of bloggers and hits grew, the dashboard needed to keep pace.This article discusses how they measured whether to go from SQLite to PostgreSQL for performance reasons and the decision they finally arrived at.
MIGUEL GRINBERG

“Operation Python” Humble Bundle for Charity
Make mastering Python your mission: This mix of online courses, books, exercises, and productivity tools is here to help you succeed—whether you’re a beginner or a skilled Python pro. Support Pythonic charities like the PSF and get Python books, software, and video courses collectively valued at $1,400 for a pay-what-you-want price →
HUMBLEBUNDLE.COMsponsor

Forms in Django 4.0+
Django 4 introduced the capability of rendering forms based on the template engine. You can now specify how base forms are built by overriding a template. The current beta of Django 4.1 has also introduced this power at the widget level. Learn about the changes in this article.
DAVID SMITH

Python any(): Powered Up Boolean Function
If you’ve ever wondered how to simplify complex conditionals by determining if at least one in a series of conditions is true, then look no further. This video course will teach you all about how to use any() in Python to do just that.
REAL PYTHON course

Technical Things Every Software Developer Should Know
This is a collection of materials that are useful for coders, no matter their skill level. Topics covered include algorithms, data structures, data types, latency, memory, distributed systems, security, and much more.
GITHUB.COM/MTDVIO

Using the Python and Operator
In this video course, you’ll learn how Python’s and operator works and how to use it in your code. You’ll get to know its special features and see what kind of programming problems you can solve by using and in Python.
REAL PYTHON course

Indexing and Slicing: Complete Tutorial With Exercises
Learn all about the indexing and slicing of lists in Python, including: negative indexes, enumeration, slices, steps in slices, and more. Includes eight exercises to practice your slicing skills.
JOHN LOCKWOOD

Just Use Dictionaries
Using simple data structures is an important part of keeping it simple, and Python is all about simplicity. Less code is less problems. Just use dictionaries, you probably don’t need classes.
DAVID VUJIC • Shared by David Vujic

How to Organize Python Code
Python is very flexible, but with that flexibility also comes the potential for making bad decisions. This opinionated article discusses naming and the structuring of code.
GUILHERME LATROVA • Shared by Gui Latrova


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 →

Uniform eXchange Format (UXF)
GITHUB.COM/MARK-SUMMERFIELD • Shared by Mark Summerfield

pyKeylogger: Track Keystrokes, Clipboard, & Take Screenshots
GITHUB.COM/KARTIKMEHTA8 • Shared by Kartik Mehta

django-test-migrations: Test Django Schema & Migrations
GITHUB.COM/WEMAKE-SERVICES

correlate: Brute-Force Correlator for Kinda-Messy Data
GITHUB.COM/LARRYHASTINGS

semgrep: Lightweight Static Analysis for Many Languages
GITHUB.COM/RETURNTOCORP

📆🐍 Upcoming Python Events


EuroPython 2022
July 11 to July 18, 2022

Building Scalable Web Apps With Python
July 11 to July 16, 2022

Santa Cruz Python Meetup
July 13, 2022

Weekly Real Python Office Hours Q&A (Virtual)
July 13, 2022

PiterPy Breakfast
July 13, 2022

Python Atlanta
July 14, 2022

Karlsruhe Python User Group (KaPy)
July 15, 2022
Happy Pythoning!
Copyright © 2022 PyCoder’s Weekly, All rights reserved.