Issue #464

Pythonic Pattern Matching, PyQt vs. PySide, Speeding Up Pandas, and More

March 16, 2021

Pythonic Pattern Matching, PyQt vs. PySide, Speeding Up Pandas, and More
#464 – MARCH 16, 2021 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Pattern Matching Tutorial for Pythonic Code
Structural pattern matching is coming in Python 3.10. This article explores how to use it to write Pythonic code by searching for some of the best use cases for the match statement. Keep in mind that match is still in alpha, so, while unlikely, some things may still change before the final version of 3.10 is released.
RODRIGO GIRÃO SERRÃO • Shared by Rodrigo Girão Serrão

PyQt6 vs PySide6: What’s the Difference Between the Two Python Qt Libraries?
There is a new version of Qt (version 6) and with it new versions of PyQt and PySide — now named PyQt6 & PySide6 respectively. Take a look at the latest versions of the libraries to identify the differences between them and find solutions for writing portable code.

Introducing App Platform, a new PaaS That Gets Your Apps to Market, Faster
Get your apps to market faster with DigitalOcean’s App Platform. Build, deploy, and scale apps quickly using a simple, fully managed solution. We’ll handle the infrastructure, app runtimes and dependencies, so that you can push code to production in just a few clicks. Get started w/ $100 free credit →

Build a Contact Book With Python, PyQt, and SQLite
In this step-by-step project, you’ll build a minimal contact book application using Python, with PyQt to build the application’s GUI and SQLite to handle the database.

Rapid Prototyping with Flask, htmx, and Tailwind CSS
Learn how to usee htmx and Tailwind CSS with Flask to quickly build interactive front-ends.
AMAL SHAJI • Shared by Amal Shaji

Mu Version 1.1.0-Beta.2 Released


Why Are tar.xz Files 15x Smaller When Using Python’s Tar Compared to macOS Tar?

How Can You Quickly Get the Last Line of a Huge CSV File With 48 Million Lines?

Python Jobs

How Strong Is Your Resume?sponsor
Get a free, confidential review from a resume expert →

Senior Backend Developer

Full-Stack Django Developer

Senior Python Engineer

Back End Developer

More Python Jobs >>>

Articles & Tutorials

How to Speed Up Pandas With Modin
The pandas library provides easy-to-use data structures like pandas DataFrames as well as tools for data analysis. One issue with pandas is that it can be slow with large amounts of data. It wasn’t designed for analyzing 100 GB or 1 TB datasets. Fortunately, there is the Modin library which has benefits like the ability to scale your pandas workflows by changing one line of code.
MICHAEL GALARNYK • Shared by Michael Galarnyk

Navigating Options for Deploying Your Python Application
What goes into the decision of how to host your Python code or application in the cloud? Which technology stack is the right size for your project? This week on the show, we have Calvin Hendryx-Parker. Calvin talks about cloud hosting options, infrastructure choices, and deployment tools.

Understand the Architecture Around your Python Apps in Containers and Serverless Environments
Epsagon lets dev teams see and understand dependencies and API integrations in microservices architecture. It’s a Microservices Observability SaaS with monitoring and investigative tools to ‘drill-down’ and explore modern workloads. Setup Epsagon and see your python services in minutes →

Interfaces and Protocols
Now that Python developers have Mypy and Python’s built-in Protocol, is zope.interface a thing of the past? Can you replace every zope.interface with a Protocol? See how these two approaches to abstract types compare, and when it might make sense to stick with zope.interface.

Python Turns 30: Meet the Man That Helps Keep the Programming Language on Track
Pablo Galindo is a physicist, Python core-dev, and member of the Python steering council. He’s also the release manager for Python 3.10 and 3.11. Learn how he got involved with Python and read about his thoughts on the role of the steering council and Python’s future.

RSVP for the 3rd Annual Python Web Conference (Virtual) | March 22-26, 2021
International experts share best practices for hard Python problems. 50+ talks on Machine Learning, AI, Big Data, Django, Plone, CI/CD, Containers, Serverless, web security, etc. Join JetBrains and Six Feet Up to discuss what the future holds.
SIX FEET UPsponsor

Python Booleans: Leveraging the Values of Truth
Learn about the built-in Python Boolean data type, which is used to represent the truth value of an expression. You’ll see how to use Booleans to compare values, check for identity and membership, and control the flow of your programs with conditionals.

Performance Comparison: Counting Words in Python, Go, C++, C, AWK, Forth, and Rust
This article is less of a “my language is better than your” rant and more of an exploration into what idiomatic vs. optimized code looks like in various languages and where surprising bottlenecks lurk.

Announcing Beanie: An Asynchronous MongoDB ODM
Beanie is a new asynchronous Python ODM (Object Document Mappter) for MongoDB based on Motor and Pydantic. Learn how Beanie’s data model works and see it in action in a minimal web application.

Python Community Interview With Ewa Jodlowska
Learn how Ewa Jodlowska, the executive director of the Python Software Foundation (PSF), started her tech journey and how COVID-19 affected the PSF and plans for PyCon US 2021.

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 →

lucid-sonic-dreams: Sync GAN-generated Visuals to Music

python-fpe: Format Preserving Encryption Implementation in Python

Hyperactive: A Hyperparameter Optimization and Data Collection Toolbox

playback: Record Your Service Operations in Production and Replay Them Locally

beanie: Micro ODM for MongoDB

📆🐍 Upcoming Python Events

Real Python Office Hours (Virtual)
March 17, 2020

Python Web Conference 2021
March 22 to March 27, 2021

An Introduction to Delivering Technical Presentations With Confidence
March 25, 2021

PyCon Israel 2021 (Virtual)
May 2 – 3, 2021

PyCon 2021 (Virtual)
May 12 – 18, 2021

DjangoCon Europe 2021 (Virtual)
June 2 – 6, 2021

PyCon Cameroon 2021
March 18 to March 21, 2021
Happy Pythoning!
Copyright © 2021 PyCoder’s Weekly, All rights reserved.