Inline Dependencies, pipx, Multiplying Sequences, and More

#624 – APRIL 9, 2024 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Install and Execute Python Applications Using pipx
In this tutorial, you’ll learn about a tool called pipx, which lets you conveniently install and run Python packages as standalone command-line applications in isolated environments. In a way, pipx turns the Python Package Index (PyPI) into an app marketplace for Python programmers.
REAL PYTHON

Why Do Python Lists Multiply Oddly?
In Python you can use the multiplication operator on sequences to return a repeated version of the value. When you do this with a list containing an empty list you get what might be unexpected behavior. This article explains what happens and why.
ABHINAV UPADHYAY

Saga Pattern Made Easy
The Saga pattern lets you manage state across distributed transactions. But it’s difficult to build and maintain. Download this free technical guide to learn how to Automate Sagas Pattern with Temporal, the open source durable execution platform →
TEMPORAL TECHNOLOGIESsponsor

Inline Run Dependencies in pipx 1.4.2
PEP 723 adds the ability to specify dependencies within a Python script itself. The folks who write pipx have added an experimental feature that takes advantage of this future language change. This article shows you how the new feature looks and what pipx does with it.
HENRY SCHREINER

PEP 738 Accepted: Adding Android as a Supported Platform
PYTHON ENHANCEMENT PROPOSALS (PEPS)

PEP 742 Accepted: Narrowing Types With TypeIs
PYTHON ENHANCEMENT PROPOSALS (PEPS)

Django Bugfix Release Issued: 5.0.4
DJANGO SOFTWARE FOUNDATION


Discussions


What Is the Most Useless Project You Have Worked On?
HACKER NEWS


Articles & Tutorials


Enforcing Conventions in Django Projects With Introspection
This post talks about the importance of naming conventions in your code, but takes it to the next level: use scripts to validate that conventions get followed. By using introspection you can write rules for detecting code that doesn’t follow your conventions. Examples are for Django fields but the concept works for any Python code.
LUKE PLANT

Leveraging Docs and Data to Create a Custom LLM Chatbot
How do you customize a LLM chatbot to address a collection of documents and data? What tools and techniques can you use to build embeddings into a vector database? This week on the show, Calvin Hendryx-Parker is back to discuss developing an AI-powered, Large Language Model-driven chat interface.
REAL PYTHON podcast

“Real” Anonymous Functions for Python
The topic of multi-line lambdas, or anonymous functions akin to languages like JavaScript, comes up with some frequency in the Python community. It popped up again recently. This article talks about the history of the topic and the current reasoning against it.
JAKE EDGE

How to Set Up Pre-Commit Hooks
Maintaining code quality can be challenging no matter the size of your project or the number of contributors. Pre-commit hooks make it a little easier. This article provides a step-by-step guide to installing and configuring pre-commit hooks on your project.
STEFANIE MOLIN • Shared by Stefanie Molin

Fix Python Code Smells With These Best Practices
A code smell isn’t something that is necessarily broken, but could be a sign of deeper problems. This post teaches you how to identify and eliminate seven Python code smells with practical examples.
ARJAN

New Open Initiative for Cybersecurity Standards
The PSF has joined with the Apache Software Foundation, the Eclipse Foundation, and other open source groups to form a group dedicated to cybersecurity initiatives in the open source community.
PYTHON SOFTWARE FOUNDATION

10 Reasons I Stick to Django Rather Than FastAPI
FastAPI is an excellent library and is quite popular in the Python community. Regardless of his respect for it, David still sticks with Django. This post discusses his ten reasons why.
DAVID DAHAN

My Accessibility Review Checklist
Ensuring accessibility in your software is important, removing boundaries that limit some people from participating. This checklist is valuable for helping you determine whether your web code meets the accepted Web Content Accessibility Guidelines.
SARAH ABEREMANE

Python Deep Learning: PyTorch vs Tensorflow
PyTorch vs Tensorflow: Which one should you use? Learn about these two popular deep learning libraries and how to choose the best one for your project.
REAL PYTHON course

Python Project-Local Virtualenv Management Redux
Hynek talks about his Python tooling choices and how they’ve changed over the years, with a focus on environment management tools like uv and direnv.
HYNEK SCHLAWACK

Trying Out Rye
Hamuko decided to try out rye. This post goes into detail about what worked and what didn’t for them.
HAMUKO


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 →

drawpyo: Programmatically Generate Draw.io Charts
GITHUB.COM/MERRIMANIND

best-python-cheat-sheet: The Best* Python Cheat Sheet
GITHUB.COM/KIERANHOLLAND

rebound: Multi-Purpose N-Body Code
GITHUB.COM/HANNOREIN

Compatibility Layer Between Polars, Pandas, cuDF, and More!
GITHUB.COM/MARCOGORELLI • Shared by Marco Gorelli

Reduce the Size of GeoJSON Files
GITHUB.COM/BEN-N93 • Shared by Ben Nour

📆🐍 Upcoming Python Events


Weekly Real Python Office Hours Q&A (Virtual)
April 10, 2024

Python Atlanta
April 11 to April 12, 2024

DFW Pythoneers 2nd Saturday Teaching Meeting
April 13, 2024

Inland Empire Python Users Group Monthly Meeting
April 17, 2024

Data Ethics
April 17, 2024

Python Meeting Düsseldorf
April 17, 2024
Happy Pythoning!
Copyright © 2024 PyCoder’s Weekly, All rights reserved.
You are receiving this email because you opted in on our website at pycoders.com
Our mailing address: DevCademy Media Inc. · #720-999 West Broadway, Vancouver BC V5Z 1K5, Canada

Unsubscribe | Update Email Address

Older messages

WAV Files, Reflex, Autopilot, and More

Tuesday, April 2, 2024

Reading and Writing WAV Files in Python #623 – APRIL 2, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Reading and Writing WAV Files in Python In this tutorial, you'll learn how to work with

Space Invaders, Using help(), Every Dunder Method, and More

Tuesday, March 26, 2024

Build a Python Turtle Game: Space Invaders Clone #622 – MARCH 26, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Build a Python Turtle Game: Space Invaders Clone In this step-by-step tutorial, you

Seaborn, Pointers, Memory, and More

Tuesday, March 19, 2024

Visualizing Data in Python With Seaborn #621 – MARCH 19, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Visualizing Data in Python With Seaborn In this tutorial, you'll learn how to use the

Celery, Context Managers, Data Wrangling, and More

Tuesday, March 12, 2024

Creating Asynchronous Tasks With Celery and Django #620 – MARCH 12, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Creating Asynchronous Tasks With Celery and Django In this video course, you'

Duck Typing, IPython Jupyter Magic, Monkey Patching, and More

Tuesday, March 5, 2024

Duck Typing in Python: Writing Flexible and Decoupled Code #619 – MARCH 5, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Duck Typing in Python: Writing Flexible and Decoupled Code In this tutorial

You Might Also Like

Google DeepMind unveils a new AlphaFold

Wednesday, May 8, 2024

Plus: Atlan grabs $105M and New Yorkers say hi to Dubliners View this email online in your browser By Christine Hall Wednesday, May 8, 2024 Good afternoon, and welcome to your Hump Day TechCrunch PM. I

Apple would never make this mistake

Wednesday, May 8, 2024

Rabbit R1 AI hardware fails spectacularly ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

JSK Weekly - 8th May, 2024

Wednesday, May 8, 2024

Are you interested in combining your love for chess with your passion for coding? A comprehensive video course was just posted on the freeCodeCamp.org YouTube channel that will teach you how to code

💻 Signs You Need a New Laptop — How to Free Up Storage on the PS5

Wednesday, May 8, 2024

Also: 7 Ways to Speed Up Excel Spreadsheets, and More! How-To Geek Logo May 8, 2024 Did You Know The topmost vertebra in the human spine (C1) is called the "atlas" vertebra---a reference to

JSK Daily for May 8, 2024

Wednesday, May 8, 2024

JSK Daily for May 8, 2024 View this email in your browser A community curated daily e-mail of JavaScript news Debugging Like a Pro: 10 Tips for Effective JavaScript Troubleshooting This article will

Daily Coding Problem: Problem #1435 [Medium]

Wednesday, May 8, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. Implement the singleton pattern with a twist. First, instead of storing one

Mapped | Visualizing the Tax Burden of Every U.S. State 💸

Wednesday, May 8, 2024

Tax burden measures the percent of an individual's income that is paid towards taxes. See where it's the highest by state in this graphic. View Online | Subscribe Presented by: FEATURED STORY

Noonification: Do Not Open This Article

Wednesday, May 8, 2024

Top Tech Content sent at Noon! Get Algolia: AI Search that understands How are you, @newsletterest1? 🪐 What's happening in tech today, May 8, 2024? The HackerNoon Newsletter brings the HackerNoon

Modern Payments. Now.

Wednesday, May 8, 2024

Netevia is breaking down the traditional barriers businesses face through an integrated ecosystem of payments, banking, and ISV solutions. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Top Tech Deals 😍 Beats Studio Pro, Lenovo Yoga 9i, Power Banks, and More

Wednesday, May 8, 2024

Save on a new Galaxy S24 Ultra, headphones, or an Amazon Kindle. How-To Geek Logo May 8, 2024 Top Tech Deals: Beats Studio Pro, Lenovo Yoga 9i, Power Banks, and More Save on a new Galaxy S24 Ultra,