Python Packaging Tools, Enumerations, Debugging Tips, and More

#615 – FEBRUARY 6, 2024 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Rye: A [Python Developer Experience] Vision Continued
Armin, who’s also the creator of Flask, discusses the continued development of Rye, a tool he created to improve the Python packaging and project management experience. Rye aims to be a “one-stop shop” for tasks like downloading Python versions, creating virtual environments, managing dependencies, linting and formatting.
ARMIN RONACHER

Starting Points for Contributing to Open Source With Python
What’s it like to sit down for your first developer sprint at a conference? How do you find an appropriate issue to work on as a new open-source contributor? This week on the show, author and software engineer Stefanie Molin is here to discuss starting to contribute to open-source projects.
REAL PYTHON podcast

Data Science Workflows: Machine Learning Models with Python & Posit Connect
Via an end-to-end example, learn how data science organizations use Posit Connect as a platform for hosting internal machine learning models. This will give you a robust pattern for hosting and sharing models on Connect before you deploy them to a customer-facing system →
POSITsponsor

Boring Python: Dependency Management
How to set up dependency management for Python projects in a “boring” way, meaning using standard, well-established tools to minimize surprises. It recommends using pip, virtualenv, and pip-tools to define dependencies, isolate environments, and track the full dependency tree.
JAMES BENNETT

Django Admin and Service Layer
If you need to perform operations on multiple Django objects, you might create service layer functions. The problem with this is the Django Admin is linked to the objects themselves. This post covers how to add custom calls to the Admin to invoke service layer functions.
ROMAN IMANKULOV

Python’s Format Mini-Language for Tidy Strings
In this tutorial, you’ll learn about Python’s format mini-language. See how to use it for creating working format specifiers and build nicely formatted strings and messages in your code.
REAL PYTHON

Python as a Configuration Language
“Conf is not a solved problem. While TOML, YAML, and JSON are popular choices…” the author often roles his own Python using Django-like modelling concepts. Read about how they do it.
BITE CODE

Python News: What’s New From January 2024
In January 2024, Python 3.13.0a3 was released. A new JIT compiler was added to Python 3.13. The Python Software Foundation announced new developers in residence, and the Python ecosystem released new versions of projects, such as Django and pandas.
REAL PYTHON


Discussions


How to Deal With Constant Interruptions at Work?
HACKER NEWS

What Python Automation Scripts Do You Reuse Frequently?
HACKER NEWS


Articles & Tutorials


Python Debugging Handbook
“Programming is an art, and bugs are an inevitable part of the creative process. Every developer encounters errors in their code – there’s really no exception to it. Because of this, understanding how to effectively debug is a crucial skill that can save you time and frustration.”
SAMYAK JAIN

Handling Unset Values in FastAPI With Pydantic
When using the HTTP PATCH method only those fields that got changed are updated. Pydantic sets fields not given as arguments as None so there is no way to distinguish between an explicit None value and an unset field. This post explains how you process this scenario.
ROMAN IMANKULOV

The Morning Paper for Hacker News Readers
Want a byte-sized version of Hacker News? Try TLDR’s free daily newsletter. TLDR covers the most interesting tech, science, and coding news in just 5 minutes. No sports, politics, or weather. Subscribe for free!
TLDRsponsor

Building Enumerations With Python’s enum
Discover the art of creating and using enumerations of logically connected constants in Python. To accomplish this, you’ll explore the Enum class and other associated tools and types from the enum module in the Python standard library.
REAL PYTHON course

What Are Python Raw Strings?
In this tutorial, you’ll learn the nuances of using raw string literals in your Python source code. Raw strings offer convenient syntax for including backslash characters in string literals without the complexity of escape sequences.
REAL PYTHON

Microdot: Yet Another Python Web Framework
Miguel is the maintainer of Microdot, a web framework for Python. This post covers why he wrote another Python web framework and what distinguishes Microdot from the crowd.
MIGUEL GRINBERG

Real Life Use of Decorators
Part 3 in a series on how Python decorators are used. This part covers real-life use cases including call interception, function registration, and behavioral enrichment.
BITE CODE

Add Vue to Your Django Templates With Vite
You don’t have to build a separate app to use Vue with Django. This article talks about the Vite tool and how you can integrate Vue.js directly into your templates.
ALICE

The Python Rust-Aissance
Companies like Polars are showing how with Rust, Python developers now have a better, smoother path towards building high-performance libraries.
SLATER STICH

Mutating the Immutable Tuple (Sort Of)
“Tuples are immutable, but their contents can change. Eh?! Let me tell you the story of my neighbours moving house, and all will make sense.”
STEPHEN GRUPETTA • Shared by Stephen Gruppetta

map() vs List Comprehensions
This tutorial covers the difference between Python’s map() and using list comprehensions, with examples on how to use both.
SOUMYA AGARWAL

Django, SQLite, and the Database Is Locked Error
This post explains “database is locked” errors in Django when using SQLite, and how to solve them.
ANZE

Using Python & Poetry Inside Docker
ASHISH BHATIA


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 →

apple-ocr: Apple Vision Wrapper for Text Extraction and Clustering
PYPI.ORG

RustPython: OSS CPython Written in Rust
RUSTPYTHON.GITHUB.IO

granian: Rust HTTP Server for Python Applications
GITHUB.COM/EMMETT-FRAMEWORK

django-webhook: Outgoing Webhooks Triggered on Model Changes
GITHUB.COM/DANIHODOVIC

Applio: Ultimate Voice Cloning Tool
GITHUB.COM/IAHISPANO

wafer: Web Application Firewall Fuzzing Tool
GITHUB.COM/SYSDIG

django-mock-queries: Mock Django Queryset Functions for Testing
GITHUB.COM/STPHIVOS

typed_configparser: Fully Typed INI/Config File Parser
GITHUB.COM/AJATKJ

tuttut: Converts a Midi File to ASCII Guitar Tabs
GITHUB.COM/NATECDR

📆🐍 Upcoming Python Events


Python Atlanta
February 9, 2024

PyDelhi User Group Meetup
February 10, 2024

DFW Pythoneers 2nd Saturday Teaching Meeting
February 10, 2024

PiterPy Meetup
February 13, 2024

Leipzig Python User Group Meeting
February 13, 2024

IndyPy Monthly Meetup
February 14, 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

Tic-Tac-Toe with AI, LRU Caches, Debugging, and More

Tuesday, January 30, 2024

Create a Tic-Tac-Toe Python Game Engine With an AI Player #614 – JANUARY 30, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Create a Tic-Tac-Toe Python Game Engine With an AI Player In this video

Packaging, Air-Gapped Systems, Logging in Flask, and More

Tuesday, January 23, 2024

Python Packaging, One Year Later: A Look Back at 2023 #613 – JANUARY 23, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Python Packaging, One Year Later: A Look Back at 2023 This is a follow-on

Python & Excel, JIT, NumPy 2, and More

Tuesday, January 16, 2024

Exploring Python in Excel #612 – JANUARY 16, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Exploring Python in Excel Are you interested in using your Python skills within Excel? Would you like to

Time, Markov Chains, Top Libraries, and More

Tuesday, January 9, 2024

How to Get the Current Time in Python #611 – JANUARY 9, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo How to Get the Current Time in Python In this video course, you'll be getting the current

Flask, Python JIT, Discoveries in 2023, and More

Tuesday, January 2, 2024

Build a Scalable Flask Web Project From Scratch #610 – JANUARY 2, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Build a Scalable Flask Web Project From Scratch In this tutorial, you'll explore

You Might Also Like

Your Phone’s Other Number 📱

Saturday, April 27, 2024

Let's talk about your phone's IMEI number. Here's a version for your browser. Hunting for the end of the long tail • April 27, 2024 Today in Tedium: As you may know, Tedium is a blog and/or

🕹️ How to Play Retro Games for Free on iPhone — Why I Can't Live Without an eReader

Saturday, April 27, 2024

Also: Anker MagGo (Qi2) Power Bank Review, and More! How-To Geek Logo April 27, 2024 📩 Get expert reviews, the hottest deals, how-to's, breaking news, and more delivered directly to your inbox by

Weekend Reading — The Bob Ross of programming

Saturday, April 27, 2024

This week we use coffee tasting as our design practice, get as close to and as far away from the metal as possible, find an easier way to write documentation, discover why Google Search is getting so

Issue #538: All the Jam entries, Panthera 2, and Tristram

Saturday, April 27, 2024

Weekly newsletter about HTML5 Game Development. Is this email not displaying correctly? View it in your browser. Issue #538 - April 26th 2024 If you have anything you want to share with the HTML5 game

Daily Coding Problem: Problem #1424 [Easy]

Saturday, April 27, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. Implement a URL shortener with the following methods: shorten(url) , which

Charted | Countries That Became More Happy (or Unhappy) Since 2010 😅

Saturday, April 27, 2024

Which countries had the highest happiness gains since 2010? Which became sadder? View Online | Subscribe Presented by Voronoi: The App Where Data Tells the Story FEATURED STORY Countries With the

Noonification: What Is E-Waste Hacking?

Saturday, April 27, 2024

Top Tech Content sent at Noon! The first AI-powered startup unlocking the “billionaire economy” for your benefit How are you, @newsletterest1? 🪐 What's happening in tech this week: The

TikTok faces a ban in the US, Tesla profits drop and healthcare data leaks

Saturday, April 27, 2024

Plus: Amazon's new delivery subscription and a deep dive on Rippling View this email online in your browser By Kyle Wiggers Saturday, April 27, 2024 Image Credits: TechCrunch Welcome, folks, to

🐍 New Python tutorials on Real Python

Saturday, April 27, 2024

Hey there, There's always something going on over at realpython.com as far as Python tutorials go. Here's what you may have missed this past week: Write Unit Tests for Your Python Code With

Bogus npm Packages Used to Trick Software Developers into Installing Malware

Saturday, April 27, 2024

THN Daily Updates Newsletter cover Webinar -- Uncovering Contemporary DDoS Attack Tactics -- and How to Fight Back Stop DDoS Attacks Before They Stop Your Business... and Make You Headline News.