- Python Weekly
- Posts
- Python Weekly (Issue 631 December 21 2023)
Python Weekly (Issue 631 December 21 2023)
Python Weekly - Issue 631
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
A weekly newsletter featuring the best hand curated news, articles, tutorials, talks, tools and libraries etc for programmers.
News
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
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.
A 6 Lesson course teaching everything you need to know about harnessing GitHub Copilot and an AI Paired Programing resource.
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.
An unorthodox approach to optimizing Python C extensions that operate on Python strings.
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.
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.
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.
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.
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.
In this tutorial, you will discover best practices for canceling asyncio tasks in Python.
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.
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.
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.
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.
Six solid examples of how llamafile can help you be productive on the command line.
Figuring out how much parallelism your program can use is surprisingly tricky.
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
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.
A Unified Library for Evaluating and Understanding Large Language Models.
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.
An app that allows you to AFK mine timed Twitch drops, with automatic drop claiming and channel switching.
Build powerful CLIs with simple idiomatic Python, driven by type hints.
Agents Capable of Self-Editing Their Prompts / Python Code.
Declarative CRUD Endpoints & Tests with Django Ninja.
A command-line based plane spotting and aircraft OSINT reconnaissance tool made using Python.
AI powered speech denoising and enhancement.
Advancing Speech-to-Text Processing.
Tools for merging pretrained large language models.
LLM plugin providing access to Mistral models busing the Mistral API.
Easily train AlphaZero-like agents on any environment you want!
Our Other Newsletters
- A free weekly newsletter for programmers.
- A free weekly newsletter for entrepreneurs featuring best curated content, must read articles, how to guides, tips and tricks, resources, events and more.