PythonHub
2.4K subscribers
2.35K photos
49.1K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
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.

https://www.youtube.com/watch?v=OPyoXx0yA0I
Real-world match/case

Python 3.10 brought us structural pattern matching, better known as
match/case. At first glance, ...

https://nedbatchelder.com/blog/202312/realworld_matchcase.html
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.

https://buildwithlayer.github.io/buildwithlayer/blog/dry_with_apiflask/
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.

https://robertrode.com/2023/10/02/configuration-in-python-applications-no-magic-just-necessary-practice.html
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.

https://github.com/myshell-ai/OpenVoice
Understanding GPU Memory 1: Visualizing All Allocations over Time

The part 1 shows how to use the memory snapshot tool.

https://pytorch.org/blog/understanding-gpu-memory-1/
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.

https://overtag.dk/v2/blog/a-settings-pattern-for-reusable-django-apps
A simple OpenID connect tutorial

Introduction
OpenID Connect is a simple identity layer on top of the OAuth 2.0 protocol. It allows ...

https://spapas.github.io/2023/11/29/openid-connect-tutorial/
Pythonistas, Happy New Year!
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.

https://andrewwegner.com/python-gotcha-list-copy.html