Python Weekly - Python Weekly - Issue 566

View this email in your browser

Python Weekly

Welcome to issue 566 of Python Weekly. Last week, our 11 years old Twitter account @PythonWeekly all of a sudden got suspended and I really don't understand why. We never had any issues whatsoever before. I immediately appealed via their standard process and also I followed up again, but haven't heard back yet. If you work at Twitter or know someone who does and can help me get our account reinstated, I will highly appreciate it.
From Our Sponsor 
 
  Want to get started with Capture the Flag (CTF) security competitions? Join Snyk's CTF 101 Workshop on September 14 at 11am EDT to learn how to solve web & pwn CTF challenges. Get live support from CTF experts in the hands-on lab as you solve your first challenge. Register now!

News

Python Packaging User Survey 
Do you have ideas on improving Python packaging? Here is an opportunity to get your opinions heard.


Articles, Tutorials and Talks

5 Tips To Achieve Low Coupling In Your Python Code 
In this video I share 5 tips to help you write code that has low coupling. I'll show you several examples and also share a story of a technique I used several times in the past that has really helped me reduce coupling and solve more complex software design problems.

Someone’s Been Messing With My Subnormals!
After noticing an annoying warning, I went on an absurd yak shave, and discovered that because of a tiny handful of Python packages built with an appealing-sounding but dangerous compiler option, more than 2,500 Python packages—some with more than a million downloads per month—could end up causing any program that uses them to compute incorrect numerical results.

Accelerate Python code 100x by import taichi as ti
There is no universal solution to all optimization problems. That's partially why Python is fascinating. You can always find/create an easy-to-use tool that can precisely solve your problem at hand. In terms of scientific computing, Taichi is an ideal option within Python that can help you achieve performance comparable to C/C++.

Python String Methods to Know
Python's strings have dozens of methods, but some are much more useful than others. Let's discuss the dozen-ish must-know string methods and why the other methods aren't so essential.

Indoor Asset Tracking using Wi-Fi Triangulation
Build a complete indoor asset tracking IoT solution using the Blues Wireless Notecard, an ESP32 host MCU, the Notecarrier-F, and Datacake.

25 Nooby Pandas Coding Mistakes You Should Avoid 
This video goes over a list of 25 mistakes commonly made my beginners learning pandas in python. Pandas is a great tool, but there are some pitfalls to avoid!

Python List Comprehensions Are More Powerful Than You Might Think
Python's list comprehensions (and generators) are an awesome feature that can greatly simplify your code. Most of the time however, we only use them to write a single for loop, maybe with addition of one if conditional and that's it. If you start poking around a bit though, you will find out that there are many more features of Python's comprehensions that you don't know about, but can learn a lot from.

Lazy imports for Python
Starting a Python application typically results in a flurry of imports as modules from various locations (and the modules they import) get added into the application process. All of that occurs before the application even gets started doing whatever it is the user actually launched it for; that delay can be significant—and annoying. Beyond that, many of those imports may not be necessary at all for the code path being followed, so eagerly doing the import is purely wasted time. A proposal back in May would add a way for applications to choose lazy imports, where the import is deferred until the module is actually used.

Using a Raspberry Pi as a Bluetooth speaker with PipeWire
Do you have an old pair of PC speakers, or an old Hi-Fi, that you would like to convert into a pair of Bluetooth® speakers to play music from your phone? A Raspberry Pi can be easily used as an audio bridge between a Bluetooth® device and an analog speaker system, to make this possible. In this quick guide, I will show you how to set up the software on a Pi, using PipeWire, to achieve this.


Interesting Projects, Tools and Libraries

docquery
An easy way to extract information from documents.

WakaQ
Distributed background task queue for Python backed by Redis, a super minimal Celery.

stable-diffusion-videos
Create videos with Stable Diffusion by exploring the latent space and morphing between text prompts.

ai-art-generator
Automate the creation of large batches of AI-generated artwork locally.

Cog
Cog is an open-source tool that lets you package machine learning models in a standard, production-ready container.

Marqo
Tensor search for humans.

exporters
Export Hugging Face models to Core ML and TensorFlow Lite.

Regressio
A Python library for univariate regression, interpolation, and smoothing.

django-htmx-patterns
Sharing patterns I use with Django and htmx.

Pyrun
Run Python code from Tweets.

Unicaps
A unified Python API for CAPTCHA solving services.

DevCase
A privacy-focused and secure CMS, Blog and Portfolio made with Python & Django. Designed with developers and IT professionals in mind.


New Releases

Python in Visual Studio Code – September 2022 Release
This release includes the following announcements:
  • Improved IntelliSense support for Jupyter Notebooks
  • A new Flake8 extension
  • Internship highlight: improved unittest support and notebook image pasting

Django bugfix release: 4.1.1

Python releases 3.10.7, 3.9.14, 3.8.14, and 3.7.14 are now available


Upcoming Events and Webinars

Hybrid Panel: Hot Takes on CI Tools We Use
Experts from Azure DevOps, GitHub Actions, GitLab CI/CD and JFrog Pipelines will join IndyPy for a panel: “Hot Takes on CI Tools We Use.” The lively discussion, moderated by Calvin Hendryx-Parker (Six Feet Up), will feature the pros and cons of your favorite tools and, as always, awesome door prizes.

PyData Pittsburgh Meetup September 2022
This month, PyData Pittsburgh is convening a panel discussion of data science managers and leaders to share their perspectives and advice on what it takes to get a job in data science or machine learning.
 
Our Other Newsletters
Programmer Weekly - A free weekly newsletter for programmers.

Founder Weekly - A free weekly newsletter for entrepreneurs featuring best curated content, must read articles, how to guides, tips and tricks, resources, events and more.
 
Copyright © 2022 Python Weekly, All rights reserved.
You are receiving our weekly newsletter because you signed up at http://www.PythonWeekly.com.

Our mailing address is:
Python Weekly
Brooklyn
Brooklyn, NY 11209

Add us to your address book


Want to change how you receive these emails?
You can update your preferences or unsubscribe from this list.

Older messages

Python Weekly - Issue 565

Thursday, September 1, 2022

View this email in your browser Python Weekly Welcome to issue 565 of Python Weekly. Let's get straight to the links this week. From Our Sponsor Deepnote is a collaborative data science notebook.

Python Weekly - Issue 564

Thursday, August 25, 2022

View this email in your browser Python Weekly Welcome to issue 564 of Python Weekly. Let's get straight to the links this week. From Our Sponsor Get Your Weekly Dose of Programming A weekly

Python Weekly - Issue 563

Thursday, August 18, 2022

View this email in your browser Python Weekly Welcome to issue 563 of Python Weekly. Let's get straight to the links this week. From Our Sponsor Get Your Weekly Dose of Programming A weekly

Python Weekly - Issue 562

Friday, August 12, 2022

View this email in your browser Python Weekly Welcome to issue 562 of Python Weekly. Let's get straight to the links this week. From Our Sponsor Deepnote is a data science notebook that's built

Python Weekly - Issue 561

Thursday, August 4, 2022

View this email in your browser Python Weekly Welcome to issue 561 of Python Weekly. Let's get straight to the links this week. From Our Sponsor Retool offers a component library and app-building

You Might Also Like

iOS Dev Weekly – Issue 694

Friday, January 10, 2025

Hopefully you won't see that much difference with receiving this issue, but it's ALL CHANGED behind the scenes! 😱 ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Daily Coding Problem: Problem #1664 [Easy]

Friday, January 10, 2025

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Twitter. A permutation can be specified by an array P , where P[i] represents the

Spyglass Dispatch: The Case for a For-Profit OpenAI

Friday, January 10, 2025

RIP Venu • A More Political and Real Time Threads • An OpenAI Auction • Apple's Tough 2025 The Spyglass Dispatch is a newsletter sent on weekdays featuring links and commentary on timely topics

⌨️ 10 Mods to Improve Your Mechanical Keyboard — How to Set Up Quick Share on Windows

Friday, January 10, 2025

Also: Why Are Tech Companies Trying to Sell Me Expensive Clocks? How-To Geek Logo January 10, 2025 Did You Know Famed biologist Charles Darwin and US President Abraham Lincoln were born on the same day

Your best friends in design

Friday, January 10, 2025

​ Working With Designers Product manager & UX designer collaboration guide. How members of your product team work together is just as important as the work itself. A fundamental relationship within

Charted | How Canada Would Rank as the 51st State 📊

Friday, January 10, 2025

Donald Trump has floated the idea that Canada should be the 51st state. Here's how it compares statistically. View Online | Subscribe | Download Our App Presented by: Global X ETFs Power AI's

Pinpointing The Actual Problem 🎯

Friday, January 10, 2025

WordPress accidentally diagnoses its own business problem. Here's a version for your browser. Hunting for the end of the long tail • January 10, 2025 Pinpointing The Actual Problem A blog post from

😱Major Azure Outage in EastUS2, 🚀New AI and Azure Developer CLI Courses, azureedge.net DNS retiring

Friday, January 10, 2025

͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏

iOS Cocoa Treats

Friday, January 10, 2025

View in browser Hello, you're reading Infinum iOS Cocoa Treats, bringing you the latest iOS related news straight to your inbox every week. Adopting Swift 6 across the app codebase I've been

Issue #575: Excalibird, bird’s eye metropolis, and Stimulation Clicker

Friday, January 10, 2025

View this email in your browser Issue #575 - January 10th 2025 Weekly newsletter about Web Game Development. If you have anything you want to share with our community please let me know by replying to