Python Weekly - Python Weekly - Issue 631

View this email in your browser

Python Weekly

Welcome to issue 631 of Python Weekly. This is the final issue of 2023. We will be back after the holiday break. Wish you and your family Happy Holidays!
From Our Sponsor
Get Your Weekly Dose of Programming
A weekly newsletter featuring the best hand curated news, articles, tutorials, talks, tools and libraries etc for programmers. Join For Free

News

2FA Requirement for PyPI begins 2024-01-01
Starting January 1, 2024, all users must enable Two-Factor Authentication (2FA) for their PyPI accounts to perform any management actions or upload files. This requirement is part of PyPI's efforts to enhance security, and users who only need to browse, download, and install packages are not affected by this change.


Articles, Tutorials and Talks

Requests vs Httpx vs Aiohttp | Which One to Pick? 
The video discusses the exploration of API communication in applications, comparing the use of requests, httpx, and aiohttp. It presents the author's preferred choice and the reasons for considering it. 

Mastering GitHub Copilot for AI Paired Programming
A 6 Lesson course teaching everything you need to know about harnessing GitHub Copilot and an AI Paired Programing resource.

Configuration in Python Applications: No Magic, Just Necessary Practice
The article explores the practice of configuration in Python applications, emphasizing the importance of transparency and avoiding magic in the process. It delves into practical approaches for managing configuration settings, advocating for clarity and necessary practices in the development of Python applications.

Balm in GILead: Fast string construction for CPython extensions
An unorthodox approach to optimizing Python C extensions that operate on Python strings.

Building a personal predictive text engine
This post discusses the development of a personal predictive text engine called AutoWrite, which takes into account words already written in a document to provide context-specific autocompletions.

How I Built an Okta Documentation Chatbot in Python
The article describes the development of Oktanaut, a Python chatbot that simplifies access to information on Okta's Developer Documentation. The chatbot was created using OpenAI and Jupyter Notebook, and two versions were developed to offer specific approaches and general knowledge. The first version used LlamaIndex and was trained on Okta's Developer Documentation, generating accurate responses due to its precision.

Colliding Secure Hashes
The article discusses the author's porting of an algorithm to run on a GPU using pyopencl, resulting in a collision of secure hashes. The author chose to truncate the middle portion of the hash rather than the end to potentially fool someone visually comparing the starts and ends of a full-length hash. 

A settings pattern for reusable Django apps
The article presents a new settings pattern for reusable Django apps, addressing the challenge of overriding app default settings with project settings. The author discusses the need for a clear and consistent pattern, and the article outlines the proposed solution, which involves inspecting the prefix of the settings to avoid returning random properties of the Django settings.

DjangoCon US 2023 Videos 
A YouTube for DjangoCon US 2023, featuring various videos from the event. It covers a range of topics related to Django development, including talks, workshops, and discussions presented at the conference.

Asyncio Task Cancellation Best Practices
In this tutorial, you will discover best practices for canceling asyncio tasks in Python.

Build an instant messenger with Django (in 6 mins) 
This video provides a quick tutorial on creating an instant messenger using Django. The tutorial aims to demonstrate the process in a concise manner, making it a helpful resource for individuals interested in developing a messaging application with Django.

Understanding GPU Memory 1: Visualizing All Allocations over Time
The part 1 shows how to use the memory snapshot tool. 
  • Part 2 - In this part, we will use the Memory Snapshot to visualize a GPU memory leak caused by reference cycles, and then locate and remove them in our code using the Reference Cycle Detector.

Keep Your Data DRY with APIFlask
The post discusses using APIFlask, which conforms to the OpenAPI spec with its routes and schemas, allowing for automatic API documentation. It emphasizes the benefits of keeping data DRY (Don't Repeat Yourself) and the ease of documenting APIs while writing them. The post provides insights into how APIFlask can help in avoiding redundant code and maintaining a clear and concise codebase.

Python Gotcha: List Copy Problems
Copying a Python list (or any mutable object) isn't as simple as setting one equal to another. Let's discuss a better way to do this.

Bash One-Liners for LLMs
Six solid examples of how llamafile can help you be productive on the command line.

How many CPU cores can you actually use in parallel?
Figuring out how much parallelism your program can use is surprisingly tricky.

The Key To The `key` Parameter in Python
A parameter named `key` is present in several Python functions, such as `sorted()`. Let's explore what it is and how to use it.


Interesting Projects, Tools and Libraries

OpenVoice
A versatile instant voice cloning approach that requires only a short audio clip from the reference speaker to replicate their voice and generate speech in multiple languages.

PromptBench
A Unified Library for Evaluating and Understanding Large Language Models.

generative-ai-python
The Google AI Python SDK enables developers to use Google's state-of-the-art generative AI models (like Gemini and PaLM) to build AI-powered features and applications.

TwitchDropsMiner
An app that allows you to AFK mine timed Twitch drops, with automatic drop claiming and channel switching.

feud
Build powerful CLIs with simple idiomatic Python, driven by type hints.

microagents
Agents Capable of Self-Editing Their Prompts / Python Code.

django-ninja-crud
Declarative CRUD Endpoints & Tests with Django Ninja.

skytrack
A command-line based plane spotting and aircraft OSINT reconnaissance tool made using Python.

resemble-enhance
AI powered speech denoising and enhancement.

whisper-plus
Advancing Speech-to-Text Processing.

mergekit
Tools for merging pretrained large language models.

llm-mistral
LLM plugin providing access to Mistral models busing the Mistral API.

tinyzero
Easily train AlphaZero-like agents on any environment you want!
 
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 © 2023 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 630

Friday, December 15, 2023

View this email in your browser Python Weekly Welcome to issue 630 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 629

Thursday, December 7, 2023

View this email in your browser Python Weekly Welcome to issue 629 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 628

Thursday, November 30, 2023

View this email in your browser Python Weekly Welcome to issue 628 of Python Weekly. One of the Y Combinator companies is looking for a Founding Engineer with 6+ years of experience, expertise in ETL,

Python Weekly - Issue 627

Thursday, November 23, 2023

View this email in your browser Python Weekly Welcome to issue 627 of Python Weekly. Let's get straight to the links this week. From Our Sponsor Use GenAI to report on product development Stepsize

Python Weekly - Issue 626

Friday, November 17, 2023

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

You Might Also Like

Recording: 'Data Storytelling: What Organizations Need to Know Going Into 2025'

Friday, November 22, 2024

Thank you for your interest in our latest webinar. As promised here is your recording of the event. View email in browser Recording Now Available Thank you for your interest in receiving a recording of

💻 Issue 437 - Introducing local Azure Service Bus Emulator

Thursday, November 21, 2024

This week's Awesome .NET Weekly Read this email on the Web The Awesome .NET Weekly Issue » 437 Release Date Nov 21, 2024 Your weekly report of the most popular .NET news, articles and projects

💎 Issue 444 - Why did people rub snow on frozen feet? (2017)

Thursday, November 21, 2024

This week's Awesome Ruby Newsletter Read this email on the Web The Awesome Ruby Newsletter Issue » 444 Release Date Nov 21, 2024 Your weekly report of the most popular Ruby news, articles and

💻 Issue 444 - JavaScript Dos and Donts

Thursday, November 21, 2024

This week's Awesome JavaScript Weekly Read this email on the Web The Awesome JavaScript Weekly Issue » 444 Release Date Nov 21, 2024 Your weekly report of the most popular JavaScript news, articles

📱 Issue 438 - Reverse Engineering iOS 18 Inactivity Reboot

Thursday, November 21, 2024

This week's Awesome iOS Weekly Read this email on the Web The Awesome iOS Weekly Issue » 438 Release Date Nov 21, 2024 Your weekly report of the most popular iOS news, articles and projects Popular

💻 Issue 362 - React Anti-Pattern: Stop Passing Setters Down the Components Tree

Thursday, November 21, 2024

This week's Awesome React Weekly Read this email on the Web The Awesome React Weekly Issue » 362 Release Date Nov 21, 2024 Your weekly report of the most popular React news, articles and projects

💻 Issue 444 - Building simple event-driven applications with Pub/Sub

Thursday, November 21, 2024

This week's Awesome Node.js Weekly Read this email on the Web The Awesome Node.js Weekly Issue » 444 Release Date Nov 21, 2024 Your weekly report of the most popular Node.js news, articles and

📱 Issue 441 - Shift Left Is the Tip of the Iceberg

Thursday, November 21, 2024

This week's Awesome Swift Weekly Read this email on the Web The Awesome Swift Weekly Issue » 441 Release Date Nov 21, 2024 Your weekly report of the most popular Swift news, articles and projects

💻 Issue 439 - Async/Await Is Real And Can Hurt You

Thursday, November 21, 2024

This week's Awesome Rust Weekly Read this email on the Web The Awesome Rust Weekly Issue » 439 Release Date Nov 21, 2024 Your weekly report of the most popular Rust news, articles and projects

📲 Why I Ditched Linux for Samsung DeX — Buy This Instead of a Gaming Headset

Thursday, November 21, 2024

Also: Taking Instagram Stories to the Next Level, and More! How-To Geek Logo November 21, 2024 Did You Know Thurl Ravenscroft was both the voice behind the Christmas song "You're a Mean One,