Adding keyboard shortcuts to the Python REPL
The article discusses how to enhance the Python REPL (Read-Eval-Print Loop) by adding custom keyboard shortcuts to improve efficiency and user experience. It provides step-by-step instructions for implementing these shortcuts, enabling users to navigate and execute commands more effectively.
https://treyhunner.com/2024/10/adding-keyboard-shortcuts-to-the-python-repl/
The article discusses how to enhance the Python REPL (Read-Eval-Print Loop) by adding custom keyboard shortcuts to improve efficiency and user experience. It provides step-by-step instructions for implementing these shortcuts, enabling users to navigate and execute commands more effectively.
https://treyhunner.com/2024/10/adding-keyboard-shortcuts-to-the-python-repl/
Treyhunner
Adding keyboard shortcuts to the Python REPL
I talked about the new Python 3.13 REPL a few months ago and after 3.13 was released.
I think it’s awesome. I’d like to share a secret …
I think it’s awesome. I’d like to share a secret …
Zero Downtime Django Deployments with Multistep Database Changes
Preventing downtime during deployments is crucial for maintaining service availability and ensuring a positive user experience. Blue-green deployments have emerged as a popular strategy to achieve this goal. However, they introduce challenges, especially when dealing with database changes. This article delves into what blue-green deployments are, why database changes can be tricky in thi...
https://johnnymetz.com/posts/multistep-database-changes/
Preventing downtime during deployments is crucial for maintaining service availability and ensuring a positive user experience. Blue-green deployments have emerged as a popular strategy to achieve this goal. However, they introduce challenges, especially when dealing with database changes. This article delves into what blue-green deployments are, why database changes can be tricky in thi...
https://johnnymetz.com/posts/multistep-database-changes/
Johnny Metz
Zero Downtime Django Deployments with Multistep Database Changes
Preventing downtime during deployments is crucial for maintaining service availability and ensuring a positive user experience. Blue-green deployments have emerged as a popular strategy to achieve this goal. However, they introduce challenges, especially…
Be Careful With Removing Code Duplication
This video refactors some tricky, hard-to-detect code duplication, provides an example of when it’s best to leave duplicated code as is, and shares a few tips on how to avoid duplication altogether.
https://www.youtube.com/watch?v=6AGDnJ_26uw
This video refactors some tricky, hard-to-detect code duplication, provides an example of when it’s best to leave duplicated code as is, and shares a few tips on how to avoid duplication altogether.
https://www.youtube.com/watch?v=6AGDnJ_26uw
YouTube
When You Shouldn’t Remove Code Duplication (And How to Refactor the Right Way)
💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide.
In this video, I'll refactor some tricky, hard-to-detect code duplication, show you an example of when it's best to leave duplicated code as is, and share a few tips on how…
In this video, I'll refactor some tricky, hard-to-detect code duplication, show you an example of when it's best to leave duplicated code as is, and share a few tips on how…
Moonshine
Fast and accurate automatic speech recognition (ASR) for edge devices.
https://github.com/usefulsensors/moonshine
Fast and accurate automatic speech recognition (ASR) for edge devices.
https://github.com/usefulsensors/moonshine
GitHub
GitHub - usefulsensors/moonshine: Fast and accurate automatic speech recognition (ASR) for edge devices
Fast and accurate automatic speech recognition (ASR) for edge devices - usefulsensors/moonshine
A Comprehensive Guide to Python Project Management and Packaging: Concepts Illustrated with uv – Part I
The goal of this guide is to provide a comprehensive guide to Python project management and packaging. We’ll explore concepts in the standard, like the different tables in pyproject.toml by revisiting the PEPs that led to what we have today. We’ll explain what was used before, why it needed to change, and how the changes provided by the PEPs solved the issues. This walkthrough of the his...
https://reinforcedknowledge.com/a-comprehensive-guide-to-python-project-management-and-packaging-concepts-illustrated-with-uv-part-i/
The goal of this guide is to provide a comprehensive guide to Python project management and packaging. We’ll explore concepts in the standard, like the different tables in pyproject.toml by revisiting the PEPs that led to what we have today. We’ll explain what was used before, why it needed to change, and how the changes provided by the PEPs solved the issues. This walkthrough of the his...
https://reinforcedknowledge.com/a-comprehensive-guide-to-python-project-management-and-packaging-concepts-illustrated-with-uv-part-i/
TinyTroupe, a new LLM-powered multiagent persona simulation Python library
https://github.com/microsoft/TinyTroupe
https://github.com/microsoft/TinyTroupe
GitHub
GitHub - microsoft/TinyTroupe: LLM-powered multiagent persona simulation for imagination enhancement and business insights.
LLM-powered multiagent persona simulation for imagination enhancement and business insights. - microsoft/TinyTroupe
ToolGit
ToolGit is a collection of scripts that extend Git with various sub-commands to make life easier.
https://github.com/ahmetsait/toolgit
ToolGit is a collection of scripts that extend Git with various sub-commands to make life easier.
https://github.com/ahmetsait/toolgit
GitHub
GitHub - ahmetsait/toolgit: Git Productivity Toolkit
Git Productivity Toolkit. Contribute to ahmetsait/toolgit development by creating an account on GitHub.
Tiny GraphRAG (Part 1)
A tiny 1000 line implementation of GraphRAG in Python.
https://www.stephendiehl.com/posts/graphrag1/
A tiny 1000 line implementation of GraphRAG in Python.
https://www.stephendiehl.com/posts/graphrag1/
Stephendiehl
Tiny GraphRAG (Part 1)
Personal Blog
Don't return named tuples in new APIs
Named tuples should generally be avoided in new APIs, as they add unnecessary complexity by supporting both index-based and attribute-based data access, leading to potential misuse and added maintenance. Instead, using options like data classes or typed dictionaries can offer clearer, more structured code with similar benefits.
https://snarky.ca/dont-use-named-tuples-in-new-apis/
Named tuples should generally be avoided in new APIs, as they add unnecessary complexity by supporting both index-based and attribute-based data access, leading to potential misuse and added maintenance. Instead, using options like data classes or typed dictionaries can offer clearer, more structured code with similar benefits.
https://snarky.ca/dont-use-named-tuples-in-new-apis/
Tall, Snarky Canadian
Don't return named tuples in new APIs
In my opinion, you should only introduce a named tuple to your code when you're updating a preexisting API that was already returning a tuple or you are wrapping a tuple return value from another API.
Let's start with when you should use named tuples. Usually…
Let's start with when you should use named tuples. Usually…