Issue #551

Refactoring Python Code, Chrome Extensions, Asyncio, and More

Nov. 15, 2022

Refactoring Python Code, Chrome Extensions, Asyncio, and More
#551 – NOVEMBER 15, 2022 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Refactoring: Prepare Your Code to Get Help
In this Code Conversation video course, you’ll explore the steps you can take to get help when you’re stuck while coding. You’ll investigate how to clean up your code to focus on the question you have. Along the way, you’ll learn how to handle errors and use custom exceptions.
REAL PYTHON course

Write Chrome Extensions… in Python!
Until recently you could only write Chrome Extensions in JavaScript. Now with PyScript, you can write them in Python. This article shows you how to get started writing a simple extension.
PETE FISON • Shared by Pete Fison

Automatic Speech-to-Text With Understanding in One, Easy API
Python developers from companies like Spotify, Rasa and Twilio chose Deepgram’s speech-to-text API because it provides accurate, usable transcripts with understanding features like summarization, language detection and sentiment analysis.  Your first 200 hours are free →
DEEPGRAMsponsor

Python Asyncio: The Complete Guide
This comprehensive guide shows you everything you’d ever want to know about asynchronous programming with coroutines and the asyncio library in Python.
JASON BROWNLEE

EuroPython 2022 Videos Released
YOUTUBE

PyCon US Looking for Remote Volunteers
PYCON US GOOGLE FORM


Discussions


Stop Requiring Only One Assertion Per Unit Test
HACKER NEWS

How Do I Find My “Purpose”?
HACKER NEWS


Python Jobs


Software Engineer - Weissman Lab
WHITEHEAD INSTITUTE FOR BIOMEDICAL RESEARCH 📍 CAMBRIDGE, MA, USA

Senior Software Engineer (Python, Qt, Linux)
VIOLET 📍 ANYWHERE

More Python Jobs >>>


Articles & Tutorials


Develop Your Pipelines as Code With the Dagger Python SDK
Dagger is a programmable CI/CD engine that uses code for configuration instead of YAML. They’ve recently released a Python SDK, you can now manage your pipeline in the same language as your code. See also the Hacker News Discussion about the launch.
DAGGER.IO

Using a Raspberry Pi as a Portable PyPI Server
At PyCon Africa, Vuyisile got into several conversations about the challenges of coding with limited or spotty internet connections. But what if you could take PyPI with you? This article shows you how to build a portable PyPI server on Raspberry Pi hardware.
VUYISILE NDLOVU

Leverage the Power of OpenTelemetry With TelemetryHub by Scout APM
If you’re in need of observability, than look no further than TelemetryHub. TelemetryHub enables you to spend less time troubleshooting your complicated systems and more time concentrating on what matters by providing a wide variety of observability microservices →
SCOUT APMsponsor

Getters and Setters: Manage Attributes in Python
In this tutorial, you’ll learn what getter and setter methods are, how Python properties are preferred over getters and setters when dealing with attribute access and mutation, and when to use getter and setter methods instead of properties in Python.
REAL PYTHON

Building Generator Pipelines in Python
Generator pipelines allow you to string calls together so that the output of one call is the input of the next one in the pipeline. The article shows you how to build generator pipelines using function composition.
MARCIN KOZAK • Shared by Marcin

Inline Caches in the Skybison Python Runtime
Inline caching is a popular technique for optimizing dynamic language runtimes. This article covers how such caching was implemented in Skybison, an experimental Python runtime.
MAX BERNSTEIN

How to Build a Modular Arithmetic Library in Python
Learn how to create a library for modular arithmetic, using operator overloading and redefining the built-in functions for NumPy all while modeling the fun “Lights Out” game.
ALEJANDRO SÁNCHEZ YALÍ. • Shared by Mirjam Guesgen

A Python 3.11 “Gotcha”
As not all packages have caught up with the Python 3.11 release, upgrading your system early may run into problems. This article details the gotchas James ran into.
JAMES BENNETT

The Past, Present, and Future of Notebooks
Data science notebooks have come a long way since first introduced back in 1988. Here’s the 101 on how we got here, where the market is at, and predictions for the future.
DEEPNOTEsponsor

How to Filter Django QuerySets
A tutorial on creating QuerySets with Django ORM and filtering the data. Includes how to convert QuerySets into lists with 15 different examples.
ALICE RIDGWAY

Django Forms Within Modal Dialogs Using HTMX
This article shows you step-by-step how to use the django-crispy-forms library with HTMX to build modal dialogs with Bootstrap.
AIDAS BENDORAITIS


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 →

typer: Build Great CLIs Using Type Hints
GITHUB.COM/TIANGOLO

videocr: OCR Videos in macOS
GITHUB.COM/PETERC

flastapi: FastAPI-like Interface Plugin for Flask
GITHUB.COM/MAARTEN-DP

jc: JSON-ify the Output of Common Tools
GITHUB.COM/KELLYJONBRAZIL

daily-python-scripts: A Repository of Scripts for Daily Tasks
GITHUB.COM/METAFY-SOCIAL

📆🐍 Upcoming Python Events


Heidelberg Python Meetup
November 16, 2022

Weekly Real Python Office Hours Q&A (Virtual)
November 16, 2022

PyCon US 2023 Call for Proposals
November 17, 2022

PyLadies Dublin
November 17, 2022

MadPUG
November 17 to November 18, 2022

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