Issue #568

BeeWare, Asyncio Overhead, Python & Julia, and More

March 14, 2023

BeeWare, Asyncio Overhead, Python & Julia, and More
#568 – MARCH 14, 2023 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Sharing Your Python App Across Platforms With BeeWare
Are you interested in deploying your Python project everywhere? This week on the show, Russell Keith-Magee, founder and maintainer of the BeeWare project, returns. Russell shares recent updates to Briefcase, a tool that converts a Python application into native installers on macOS, Windows, Linux, and mobile devices.
REAL PYTHON podcast

Overhead of Python Asyncio Tasks
The Textual library uses a lot of asyncio tasks. In order to determine whether to spend time optimizing them, Will measured the cost of creating asyncio tasks. TLDR; optimize something else. This article also spawned a conversation on Hacker News.
WILL MCGUGAN

Retire Your Legacy CMS With ButterCMS
ButterCMS is your new content backend. We’re SaaS so we host, maintain, and scale the CMS. Enable your marketing team to update website + app content without needing you. Try the #1 rated SaaS Headless CMS for your Python app today. Free for 30 days →
BUTTERCMSsponsor

Julia and Python Better Together
Julia is a popular programming language among data scientists, but if you ever code in that space and miss some of the key Python libraries, this article is for you. Julia packages can wrap other languages, so you can have the best of both worlds.
BOGUMIŁ KAMIŃSKI

Python 3.12.0 Alpha 6 Released
CPYTHON DEV BLOG

Django Developers Survey 2022 Results Available
DJANGO SOFTWARE FOUNDATION


Discussions


Nearly 40% of Software Engineers Will Only Work Remotely
HACKER NEWS


Articles & Tutorials


Predicting Wine Quality Using Chemical Properties
Alfredo discovered some datasets about wine quality including chemical properties and decided it was time to do some predictive model building. This article walks you through what he did with torch, sklearn, numpy, pandas, and seaborn to predict wine quality.
ALFREDO GONZÁLEZ-ESPINOZA

Are Those Numbers Realistic or Fake? Try Using Benford’s Law
How can you tell whether a set of figures is trustworthy? It’s not always simple, but Benford’s Law gives you one way to find out. There’s even a Python Package to help you check: randalyze.
JASON ROSS

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

Building a ChatGPT-based Assistant With Python
This article demonstrates a workflow for integrating multiple AI services to perform speech-to-text (STT), natural language processing (NLP), and text-to-speech (TTS) using OpenAI’s ChatGPT and Whisper API’s in Python.
FAIZANBASHIR.ME • Shared by Faizan Bashir

How to Strangle Old Code Using Python Decorators
The “strangler pattern” is a way of simultaneously running old and replacement code to determine through live behavior whether the replacement works. This article shows you how to use decorators to help.
JON JAGGER

Deploying a Django App to Azure App Service
This tutorial looks at how to deploy a Django application to Azure App Service. Includes details on configuring your Django and what Azure services to use to get going quickly.
NIK TOMAZIC

Python’s Mutable vs Immutable Types: What’s the Difference?
In this tutorial, you’ll learn how Python mutable and immutable data types work internally and how you can take advantage of mutability or immutability to power your code.
REAL PYTHON

Formatting Gone Wrong
Your code formatter may have reformatted your API key. This can cause confusing errors. Read Kojo’s tale to learn what happened and how he figured it out.
KOJO IDRISSA

De-Duplicating a List While Maintaining Order
There’s more than one way deduplicate an iterable in Python. Which approach you take will depend on whether you care about the order of your items.
TREY HUNNER • Shared by Trey Hunner

Find Your Next Tech Job Through Hired
Hired is home to thousands of companies, from startups to Fortune 500s, that are actively hiring the best engineers, designers, data scientists, and more. Create a profile to let hiring managers extend interview requests to you. Sign up for free today!
HIREDsponsor

Python Assertions, or Checking if a Cat Is a Dog
The articles explains the rules of using assertions in Python, and when not to use them. Includes details on the __debug__ object.
MARCIN KOZAK • Shared by Marcin

XKCD-style Plots in Python With Matplotlib
This short article shows how to add a twist to your matplotlib plots by styling them like the web-famous comic xkcd.
RODRIGO GIRÃO SERRÃO • Shared by Rodrigo Girão Serrão


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 →

Interact With ChatGPT Through a Single-File Python Script
GITHUB.COM/REORX • Shared by Reorx

meerkat: Interactive Data Frames for Unstructured Data
GITHUB.COM/HAZYRESEARCH

sketch: AI Code-Writing Assistant for Pandas
GITHUB.COM/APPROXIMATELABS

replbuilder: Tool for Building Custom REPLs
GITHUB.COM/APEROCKY

pylyzer: A Fast Static Code Analyzer for Python
GITHUB.COM/MTSHIBA

📆🐍 Upcoming Python Events


Python Web Conf 2023
March 13 to March 18, 2023

The Long White Computing Cloud
March 15, 2023

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

PyData Bristol Meetup
March 16, 2023

PyLadies Dublin
March 16, 2023

Chattanooga Python User Group
March 17 to March 18, 2023

PyCascades
March 18 to March 20, 2023 in Vancouver, BC + Remote
Happy Pythoning!
Copyright © 2023 PyCoder’s Weekly, All rights reserved.